Skip to content

Commit c763d52

Browse files
scopakinomyoga
andcommitted
feat(ssh-keygen): -Z argument completion
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
1 parent f284d98 commit c763d52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

completions/ssh-keygen

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ _comp_cmd_ssh_keygen()
66
_comp_initialize -n := -- "$@" || return
77

88
local IFS=$' \t\n' # for ${words[*]}
9-
local noargopts='!(-*|*[ aCIJjMNPSVWzbEFRDwfGKsTmnOrtY]*)'
9+
local noargopts='!(-*|*[ aCIJjMNPSVWzbEFRDwfGKsTmnOrtYZ]*)'
1010
# shellcheck disable=SC2254
1111
case $prev in
1212
-${noargopts}[aCIJjMNPSVWz])
@@ -152,6 +152,10 @@ _comp_cmd_ssh_keygen()
152152
_comp_compgen -- -W 'find-principals check-novalidate sign verify'
153153
return
154154
;;
155+
-${noargopts}Z)
156+
_comp_compgen -x ssh query ciphers
157+
return
158+
;;
155159
esac
156160

157161
_comp_compgen_set

0 commit comments

Comments
 (0)