summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/zsh_completion.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index 2de47cd8..dc0a544a 100644
--- a/contrib/zsh_completion.in
+++ b/contrib/zsh_completion.in
@@ -420,12 +420,11 @@ _keys() {
if (match($NF, /<[^>]+>/))
print substr($NF, RSTART + 1, RLENGTH - 2)
#this adds support for names as well if that is ever added
- # }
- #$1 == "uid" {
- #for (i=2;i<NF;i++) {printf "%s%s",sep, $i;sep=" "}; printf "\n"
- }' #|sed -e 's/(.*)//g' -e 's/^\ //g' -e 's/\ *$//g' |uniq
+ }
+ $1 == "uid" {
+ for (i=2;i<NF;i++) {printf "%s%s",sep, $i;sep=" "}; printf "\n"
+ }' |sed -e 's/(.*)//g' -e 's/^\ //g' -e 's/\ *$//g' |uniq
)
- #keys=(${keylist//$'\n'/\/})
keys=(${(s:/:)${keylist//$'\n'/\/}})
_describe -t modules 'keys in keyring' keys && return 0
}