diff options
Diffstat (limited to '')
-rw-r--r-- | completions/sshmitm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/sshmitm b/completions/sshmitm index ee893e5..136d2f9 100644 --- a/completions/sshmitm +++ b/completions/sshmitm @@ -1,17 +1,17 @@ # sshmitm completion -*- shell-script -*- -_sshmitm() +_comp_cmd_sshmitm() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + _comp_compgen_usage else - _known_hosts_real -- "$cur" + _comp_compgen_known_hosts -- "$cur" fi } && - complete -F _sshmitm sshmitm + complete -F _comp_cmd_sshmitm sshmitm # ex: filetype=sh |