1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00

32316: complete new ssh key type

This commit is contained in:
Christian Hesse 2014-01-29 09:14:05 +01:00 committed by Peter Stephenson
parent 8d3d34cfa4
commit 0ab7834a15
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-01-29 Peter Stephenson <p.stephenson@samsung.com>
* Christian Hesse: 32316: Completion/Unix/Command/_ssh: complete
new ssh key type.
2014-01-28 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 32303: Src/Zle/compcore.c, Completion/Zsh/Type/_parameters,

View file

@ -108,7 +108,7 @@ _ssh () {
_arguments \
'-q[silence ssh-keygen]' \
"($cmds -P)-b[specify number of bits in key]:bits in key" \
"($cmds -P)-t[specify the type of the key to create]:key type:(rsa1 rsa dsa ecdsa)" \
"($cmds -P)-t[specify the type of the key to create]:key type:(rsa1 rsa dsa ecdsa ed25519)" \
"(${cmds#-p })-N[provide new passphrase]:new passphrase" \
"($cmds -b -t)-C[provide new comment]:new comment" \
'(-D)-f[key file]:key file:_files' \
@ -223,6 +223,7 @@ _ssh () {
'ecdsa-sha2-nistp256-cert-v01@openssh.com' \
'ecdsa-sha2-nistp384-cert-v01@openssh.com' \
'ecdsa-sha2-nistp521-cert-v01@openssh.com' \
'ssh-ed25519-cert-v01@openssh.com' \
'ssh-rsa-cert-v01@openssh.com' \
'ssh-dss-cert-v01@openssh.com' \
'ssh-rsa-cert-v00@openssh.com' \
@ -230,6 +231,7 @@ _ssh () {
'ecdsa-sha2-nistp256' \
'ecdsa-sha2-nistp384' \
'ecdsa-sha2-nistp521' \
'ssh-ed25519' \
'ssh-rsa' \
'ssh-dss' && ret=0
;;