diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-17 14:57:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-17 14:57:16 +0000 |
commit | 839f2a19145079d32e1d0ab5a0f31f9cd7c3afdf (patch) | |
tree | e8091b85221c46641c1a902e9e19ca72fd0d002f /completions/ssh-keyscan | |
parent | Adding upstream version 1:2.13.0. (diff) | |
download | bash-completion-839f2a19145079d32e1d0ab5a0f31f9cd7c3afdf.tar.xz bash-completion-839f2a19145079d32e1d0ab5a0f31f9cd7c3afdf.zip |
Adding upstream version 1:2.14.0.upstream/1%2.14.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/ssh-keyscan')
-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 ;; |