summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-03-21 06:16:51 +0100
committerDan McGee <dan@archlinux.org>2011-03-21 13:40:49 +0100
commit9cab9807e02674fd5a7efcea2a408c70c1f9d40c (patch)
treeb4793f2fad95fabf80471ea7c1975970d0e292ca /contrib
parentc3e72e11b643b2a24608e1936763fb148613e464 (diff)
downloadpacman-9cab9807e02674fd5a7efcea2a408c70c1f9d40c.tar.gz
pacman-9cab9807e02674fd5a7efcea2a408c70c1f9d40c.tar.xz
Some more zsh completion tidy up
Changes for consistency across functions Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/zsh_completion.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index fded4144..2131412c 100644
--- a/contrib/zsh_completion.in
+++ b/contrib/zsh_completion.in
@@ -214,6 +214,7 @@ _pacman_completions_all_groups() {
local -a cmd groups
_pacman_get_command
groups=( $(_call_program groups $cmd[@] -Sg) )
+ typeset -U groups
compadd "$@" -a groups
}
@@ -242,7 +243,7 @@ _pacman_completions_all_packages() {
_pacman_completions_installed_groups() {
local -a cmd groups
_pacman_get_command
- groups=(${(o)${(f)"$(pacman -Qg)"}% *})
+ groups=(${(o)${(f)"$(_call_program groups $cmd[@] -Qg)"}% *})
typeset -U groups
compadd "$@" -a groups
}