diff options
Diffstat (limited to '')
-rw-r--r-- | completions/ssh-keyscan | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/completions/ssh-keyscan b/completions/ssh-keyscan index f5e4364..e9d92cc 100644 --- a/completions/ssh-keyscan +++ b/completions/ssh-keyscan @@ -3,7 +3,7 @@ _comp_cmd_ssh_keyscan() { local cur prev words cword comp_args - _comp_initialize -- "$@" || return + _comp_initialize -n = -- "$@" || return local ipvx @@ -18,6 +18,20 @@ _comp_cmd_ssh_keyscan() _comp_compgen_filedir return ;; + -*O) + case $cur in + hashalg=*) + cur=${cur#*=} + _comp_compgen -- -W 'sha1 sha256' + ;; + *=*) ;; + *) + _comp_compgen -- -W 'hashalg=' + compopt -o nospace + ;; + esac + return + ;; -*p | -*T) return ;; |