* PATCH: completing PKCS libraries for ssh-add
@ 2016-11-18 12:06 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2016-11-18 12:06 UTC (permalink / raw)
To: Zsh workers
For the -e and -s options to ssh-add, we apparently should complete shared
libraries. I'm not sure if they're likely to ever have version numbers
on them so it seemed safer to allow for that.
Oliver
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 8432819..6763e24 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -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'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-18 12:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18 12:06 PATCH: completing PKCS libraries for ssh-add Oliver Kiddle
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).