[pacman-dev] [PATCH] 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 "\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
On 20/06/12 09:03, Daniel Wallace wrote:
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> ---
Ack. But can you be more precise in your commit message about what the patch is achieving. Pushed to my working branch with the following commit message: 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. Allan
participants (2)
-
Allan McRae
-
Daniel Wallace