Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   remove comments blocking zsh completion for names (http://www.linux-archive.org/archlinux-pacman-development/674712-remove-comments-blocking-zsh-completion-names.html)

Daniel Wallace 06-19-2012 11:03 PM

remove comments blocking zsh completion for names
 
Apparently I missed when This was actually added, but I had it in with
the first patch, just remove the comments for completion of names with
pacman-key --list-keys etc.

Signed-off-by: Daniel Wallace <daniel.wallace@gatech.edu>
---
contrib/zsh_completion.in | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index e81257b..84ee93c 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 "
"
- }' #|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 "
"
+ }' |sed -e 's/(.*)//g' -e 's/^ //g' -e 's/ *$//g' |uniq
)
- #keys=(${keylist//$'
'//})
keys=(${(s:/:)${keylist//$'
'//}})
_describe -t modules 'keys in keyring' keys && return 0
}
--
1.7.11


All times are GMT. The time now is 12:01 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.