summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-11-20 23:59:35 +0100
committerOliver Kiddle <opk@zsh.org>2016-11-20 23:59:35 +0100
commitfe67ccacf15ee92864f7485fd9e54c3dd1f5d1e3 (patch)
tree54eda1af5544f77e9aec6a4ebcb62c74cb5e2b27 /Completion
parentdae21874d498ccd3f947f6f47e5ec23feb2bdcb4 (diff)
downloadzsh-fe67ccacf15ee92864f7485fd9e54c3dd1f5d1e3.tar.gz
zsh-fe67ccacf15ee92864f7485fd9e54c3dd1f5d1e3.tar.xz
zsh-fe67ccacf15ee92864f7485fd9e54c3dd1f5d1e3.zip
39974: complete shared libraries for -e and -s options to ssh-add
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_ssh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 84328199a..6763e24e7 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'