mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-05 19:08:04 -05:00
Fix zsh completion for *.pkg.tar
Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
24c166f42a
commit
102e6209c7
@ -36,7 +36,7 @@ _pacman_opts_pkgfile=(
|
|||||||
'--dbonly[Only remove database entry, do not remove files]'
|
'--dbonly[Only remove database entry, do not remove files]'
|
||||||
'--needed[Do not reinstall up to date packages]'
|
'--needed[Do not reinstall up to date packages]'
|
||||||
'--recursive[Reinstall all dependencies of target 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
|
# options for passing to _arguments: subactions for --query command
|
||||||
@ -127,7 +127,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*"'
|
||||||
;;
|
;;
|
||||||
query_group)
|
query_group)
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
@ -300,11 +300,11 @@ _pacman() {
|
|||||||
"$_pacman_opts_query_modifiers[@]" \
|
"$_pacman_opts_query_modifiers[@]" \
|
||||||
'*:package file:_files'
|
'*:package file:_files'
|
||||||
;;
|
;;
|
||||||
-Q*p*) # file *.pkg.tar.*
|
-Q*p*) # file *.pkg.tar*
|
||||||
_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*"'
|
||||||
;;
|
;;
|
||||||
-Q*) _pacman_action_query ;;
|
-Q*) _pacman_action_query ;;
|
||||||
-R*) _pacman_action_remove ;;
|
-R*) _pacman_action_remove ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user