diff options
Diffstat (limited to '')
-rw-r--r-- | completions/mussh | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/completions/mussh b/completions/mussh index c2f7a52..e36affe 100644 --- a/completions/mussh +++ b/completions/mussh @@ -1,52 +1,52 @@ # mussh(1) completion -*- shell-script -*- -_mussh() +_comp_cmd_mussh() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return case $prev in --help | -V | -m | -t) return ;; -d) - COMPREPLY=($(compgen -W '{0..2}' -- "$cur")) + _comp_compgen -- -W '{0..2}' return ;; -v) - COMPREPLY=($(compgen -W '{0..3}' -- "$cur")) + _comp_compgen -- -W '{0..3}' return ;; -i | -H | -C) - _filedir + _comp_compgen_filedir return ;; -o | -po) - _xfunc ssh _ssh_options + _comp_compgen -x ssh options return ;; -l | -L) - COMPREPLY=($(compgen -u -- "$cur")) + _comp_compgen -- -u return ;; -s) - _shells + _comp_compgen_shells return ;; -p | -h) - [[ $cur == *@* ]] && _user_at_host || _known_hosts_real -a -- "$cur" + [[ $cur == *@* ]] && _comp_complete_user_at_host "$@" || _comp_compgen_known_hosts -a -- "$cur" return ;; -c) compopt -o filenames - COMPREPLY+=($(compgen -c -- "$cur")) + _comp_compgen_commands return ;; esac [[ $cur != -* ]] || - COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + _comp_compgen_help } && - complete -F _mussh mussh + complete -F _comp_cmd_mussh mussh # ex: filetype=sh |