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>
This commit is contained in:
parent
cd6ca88c49
commit
fb522face1
1 changed files with 4 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
# copy this file to /usr/share/zsh/site-functions/_pacman
|
# copy this file to /usr/share/zsh/site-functions/_pacman
|
||||||
|
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
setopt extendedglob
|
||||||
|
|
||||||
# options for passing to _arguments: main pacman commands
|
# options for passing to _arguments: main pacman commands
|
||||||
_pacman_opts_commands=(
|
_pacman_opts_commands=(
|
||||||
|
@ -39,7 +40,7 @@ _pacman_opts_pkgfile=(
|
||||||
'--dbonly[Only remove database entry, do not remove files]'
|
'--dbonly[Only remove database entry, do not remove files]'
|
||||||
'--force[Overwrite conflicting files]'
|
'--force[Overwrite conflicting files]'
|
||||||
'--needed[Do not reinstall up to date packages]'
|
'--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
|
# options for passing to _arguments: subactions for --query command
|
||||||
|
@ -130,7 +131,7 @@ _pacman_action_query() {
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
"$_pacman_opts_common[@]" \
|
"$_pacman_opts_common[@]" \
|
||||||
"$_pacman_opts_query_modifiers[@]" \
|
"$_pacman_opts_query_modifiers[@]" \
|
||||||
'*:package file:_files -g "*.pkg.tar*"'
|
'*:package file:_files -g "*.pkg.tar*~*.sig(.,@)"'
|
||||||
;;
|
;;
|
||||||
query_group)
|
query_group)
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
|
@ -354,7 +355,7 @@ _pacman_zsh_comp() {
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
"$_pacman_opts_common[@]" \
|
"$_pacman_opts_common[@]" \
|
||||||
"$_pacman_opts_query_modifiers[@]" \
|
"$_pacman_opts_query_modifiers[@]" \
|
||||||
'*:package file:_files -g "*.pkg.tar*"'
|
'*:package file:_files -g "*.pkg.tar*~*.sig(.,@)"'
|
||||||
;;
|
;;
|
||||||
T*)
|
T*)
|
||||||
_pacman_action_deptest
|
_pacman_action_deptest
|
||||||
|
|
Loading…
Add table
Reference in a new issue