1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

39974: complete shared libraries for -e and -s options to ssh-add

This commit is contained in:
Oliver Kiddle 2016-11-20 23:59:35 +01:00
parent dae21874d4
commit fe67ccacf1
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2016-11-20 Oliver Kiddle <opk@zsh.org>
* 39974: Completion/Unix/Command/_ssh: complete shared
libraries for -e and -s options to ssh-add
2016-11-20 Peter Stephenson <p.w.stephenson@ntlworld.com>
* Guillaume Maudoux: 39900 (doc slightly tweaked): Src/params.c,

View file

@ -84,11 +84,11 @@ _ssh () {
'-D[delete all identities]' \
'-d[remove identity]' \
'-E[specify hash algorithm for fingerprints]:algorithm:(md5 sha256)' \
'-e[remove keys provided by the PKCS#11 shared library]:library:' \
'-e[remove keys provided by the PKCS#11 shared library]:library:_files -g "*.(so|dylib)(|.<->)(-.)"' \
'-k[load plain private keys only and skip certificates]' \
'-L[lists public key parameters of all identities in the agent]'\
'-l[list all identities]' \
'-s[add keys provided by the PKCS#11 shared library]:library:' \
'-s[add keys provided by the PKCS#11 shared library]:library:_files -g "*.(so|dylib)(|.<->)(-.)"' \
'-t[set maximum lifetime for identity]:maximum lifetime (in seconds or time format):' \
'-X[unlock the agent]' \
'-x[lock the agent with a password]' \
@ -366,7 +366,7 @@ _ssh () {
;;
(#i)pkcs11provider=*)
_description files expl 'PKCS#11 shared library'
_files -g '*.so' "$expl[@]" && ret=0
_files -g '*.(so|dylib)(|.<->)(-.)' "$expl[@]" && ret=0
;;
(#i)port=*)
_message -e 'port number on remote host'