summaryrefslogtreecommitdiffstats
path: root/contrib/zsh_completion.in
diff options
context:
space:
mode:
authorDaniel Wallace <daniel.wallace@gatech.edu>2012-06-20 01:03:58 +0200
committerDan McGee <dan@archlinux.org>2012-06-26 06:09:04 +0200
commit377cc23a09f7605e1f14ab89933f4d7dc69bc2cf (patch)
treed0592c44b8bc5b4472ed35bb96f2e958af91e5e4 /contrib/zsh_completion.in
parent12866ba791f1a9ae17d27574b66e4797b8b86144 (diff)
downloadpacman-377cc23a09f7605e1f14ab89933f4d7dc69bc2cf.tar.gz
pacman-377cc23a09f7605e1f14ab89933f4d7dc69bc2cf.tar.xz
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>
Diffstat (limited to 'contrib/zsh_completion.in')
-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
}