summaryrefslogtreecommitdiffstats
path: root/contrib/zsh_completion.in
diff options
context:
space:
mode:
authorDaniel Wallace <danielwallace@gtmanfred.com>2013-04-06 01:31:57 +0200
committerAllan McRae <allan@archlinux.org>2013-04-06 05:16:05 +0200
commitf9280a0523d0c49039a0ad27718701c20d874ec3 (patch)
treeb29d067558d7b8b11d1d710dbd6e49bd2f8b41e8 /contrib/zsh_completion.in
parent0f05bfc340891ed6649168c888bb7c598d7f0d58 (diff)
downloadpacman-f9280a0523d0c49039a0ad27718701c20d874ec3.tar.gz
pacman-f9280a0523d0c49039a0ad27718701c20d874ec3.tar.xz
zsh completion: make sure -Ss works
if you put a type in pacman -Ss <regex> it doesn't work because it never passes through they pointer ->sync_search to set $state. All of the other iterations like this have a case, add one for -S*s* Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib/zsh_completion.in')
-rw-r--r--contrib/zsh_completion.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index f9d11063..9edcdfaf 100644
--- a/contrib/zsh_completion.in
+++ b/contrib/zsh_completion.in
@@ -202,7 +202,7 @@ _pacman_action_sync() {
_arguments -s : \
{\*-c,\*--clean}'[Remove old packages from cache]' \
"$_pacman_opts_common[@]" \
- "$_pacman_opts_sync_modifiers[@]" \
+ "$_pacman_opts_sync_modifiers[@]"
;;
sync_group)
_arguments -s : \
@@ -383,6 +383,12 @@ _pacman_zsh_comp() {
"$_pacman_opts_sync_modifiers[@]" \
'*:package group:_pacman_completions_all_groups'
;;
+ S*s*)
+ _arguments -s : \
+ "$_pacman_opts_common[@]" \
+ "$_pacman_opts_sync_modifiers[@]" \
+ '*:search text: '
+ ;;
S*)
_pacman_action_sync
;;