summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wallace <daniel.wallace@gatech.edu>2012-06-19 19:03:58 -0400
committerDan McGee <dan@archlinux.org>2012-06-25 23:09:04 -0500
commit377cc23a09f7605e1f14ab89933f4d7dc69bc2cf (patch)
treed0592c44b8bc5b4472ed35bb96f2e958af91e5e4
parent12866ba791f1a9ae17d27574b66e4797b8b86144 (diff)
zsh-completion: Allow use of names in pacman-key
With pacman-key now having the ability to use names in --list-keys etc, we can remove the comments that temporarily blocked this in the zsh completion file. Signed-off-by: Daniel Wallace <daniel.wallace@gatech.edu> Signed-off-by: Allan McRae <allan@archlinux.org>
-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
}