index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Wallace <daniel.wallace@gatech.edu> | 2012-06-19 19:03:58 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-06-25 23:09:04 -0500 |
commit | 377cc23a09f7605e1f14ab89933f4d7dc69bc2cf (patch) | |
tree | d0592c44b8bc5b4472ed35bb96f2e958af91e5e4 | |
parent | 12866ba791f1a9ae17d27574b66e4797b8b86144 (diff) |
-rw-r--r-- | contrib/zsh_completion.in | 9 |
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 } |