forked from zsh-users/zsh-completions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_mosh
35 lines (33 loc) · 946 Bytes
/
_mosh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#compdef mosh
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for mosh (http://mosh.mit.edu).
#
# Source: https://gist.github.com/2242920
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Ben O'Hara (https://github.com/benohara)
#
# ------------------------------------------------------------------------------
_arguments \
'--client=:client helper:_command_names -e' \
'--server=:server helper:_files' \
'--ssh=:ssh command to run:_files' \
'(-a -n)--predict=:when:(adaptive always never)' \
'(--predict -n)-a[predict always]' \
'(--predict -a)-n[predict never]' \
{-p,--port=}':port:_ports' \
':remote:_hosts' \
':remote command:_command_names -e'
# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et