[pacman-dev] [PATCH] zsh completion: make sure -Ss works
Daniel Wallace
danielwallace at gtmanfred.com
Fri Apr 5 19:31:57 EDT 2013
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*
---
contrib/zsh_completion.in | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index f9d1106..9edcdfa 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
;;
--
1.8.2
More information about the pacman-dev
mailing list