diff options
author | canyonknight <canyonknight@gmail.com> | 2012-01-07 22:15:02 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-01-08 19:03:36 +0100 |
commit | 102e6209c7c850f75b0594e002fc51db83e6c39b (patch) | |
tree | a8d73009f4e792c08d79db6076b875d15946b6bc /contrib | |
parent | 24c166f42aab6b28a326e7cdbb3185e101814812 (diff) | |
download | pacman-102e6209c7c850f75b0594e002fc51db83e6c39b.tar.gz pacman-102e6209c7c850f75b0594e002fc51db83e6c39b.tar.xz |
Fix zsh completion for *.pkg.tar
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/zsh_completion.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in index f7e0b923..59551c58 100644 --- a/contrib/zsh_completion.in +++ b/contrib/zsh_completion.in @@ -36,7 +36,7 @@ _pacman_opts_pkgfile=( '--dbonly[Only remove database entry, do not remove files]' '--needed[Do not reinstall up to date packages]' '--recursive[Reinstall all dependencies of target packages]' - '*:package file:_files -g "*.pkg.tar.*(.)"' + '*:package file:_files -g "*.pkg.tar*(.)"' ) # options for passing to _arguments: subactions for --query command @@ -127,7 +127,7 @@ _pacman_action_query() { _arguments -s : \ "$_pacman_opts_common[@]" \ "$_pacman_opts_query_modifiers[@]" \ - '*:package file:_files -g "*.pkg.tar.*"' + '*:package file:_files -g "*.pkg.tar*"' ;; query_group) _arguments -s : \ @@ -300,11 +300,11 @@ _pacman() { "$_pacman_opts_query_modifiers[@]" \ '*:package file:_files' ;; - -Q*p*) # file *.pkg.tar.* + -Q*p*) # file *.pkg.tar* _arguments -s : \ "$_pacman_opts_common[@]" \ "$_pacman_opts_query_modifiers[@]" \ - '*:package file:_files -g "*.pkg.tar.*"' + '*:package file:_files -g "*.pkg.tar*"' ;; -Q*) _pacman_action_query ;; -R*) _pacman_action_remove ;; |