[pacman-dev] [PATCH] remove comments blocking zsh completion for names

Daniel Wallace daniel.wallace at gatech.edu
Tue Jun 19 19:03:58 EDT 2012


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 at 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 "\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
 }
-- 
1.7.11



More information about the pacman-dev mailing list