summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDaniel Wallace <danielwallace@gtmanfred.com>2013-03-18 08:37:03 +0100
committerAllan McRae <allan@archlinux.org>2013-03-26 06:55:51 +0100
commitfb522face1da5989d79540a9912c9bc3ca830935 (patch)
treed464e222bcf5995fd8fed43c5542f1f0a5d87651 /contrib
parentcd6ca88c49ce795d4d5a36454aaf8adb955114f8 (diff)
downloadpacman-fb522face1da5989d79540a9912c9bc3ca830935.tar.gz
pacman-fb522face1da5989d79540a9912c9bc3ca830935.tar.xz
zsh_completion: remove sigfiles from package files completion
use setopt extendedglob to remove sigfiles from package completion Signed-off-by: Daniel Wallace <danielwallace@gtmanfred.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/zsh_completion.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index 5096b8f7..f9d11063 100644
--- a/contrib/zsh_completion.in
+++ b/contrib/zsh_completion.in
@@ -3,6 +3,7 @@
# copy this file to /usr/share/zsh/site-functions/_pacman
typeset -A opt_args
+setopt extendedglob
# options for passing to _arguments: main pacman commands
_pacman_opts_commands=(
@@ -39,7 +40,7 @@ _pacman_opts_pkgfile=(
'--dbonly[Only remove database entry, do not remove files]'
'--force[Overwrite conflicting files]'
'--needed[Do not reinstall up to date packages]'
- '*:package file:_files -g "*.pkg.tar*(.)"'
+ '*:package file:_files -g "*.pkg.tar*~*.sig(.,@)"'
)
# options for passing to _arguments: subactions for --query command
@@ -130,7 +131,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*~*.sig(.,@)"'
;;
query_group)
_arguments -s : \
@@ -354,7 +355,7 @@ _pacman_zsh_comp() {
_arguments -s : \
"$_pacman_opts_common[@]" \
"$_pacman_opts_query_modifiers[@]" \
- '*:package file:_files -g "*.pkg.tar*"'
+ '*:package file:_files -g "*.pkg.tar*~*.sig(.,@)"'
;;
T*)
_pacman_action_deptest