summaryrefslogtreecommitdiffstats
path: root/completions/ssh-keyscan
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:57:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 14:57:17 +0000
commit4df698401a10efcd92ae24bada945e6bc73e565f (patch)
treee4007d29857dee54d238eab588299b04b778d45e /completions/ssh-keyscan
parentAdding debian version 1:2.13.0-1. (diff)
downloadbash-completion-4df698401a10efcd92ae24bada945e6bc73e565f.tar.xz
bash-completion-4df698401a10efcd92ae24bada945e6bc73e565f.zip
Merging upstream version 1:2.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/ssh-keyscan')
-rw-r--r--completions/ssh-keyscan16
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
;;