mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
contrib/*_completion: match *.pkg.tar.*
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
afb61bb22a
commit
d85421ec62
@ -321,7 +321,7 @@ _pacman ()
|
|||||||
case "${op}" in
|
case "${op}" in
|
||||||
U)
|
U)
|
||||||
COMPREPLY=( $( compgen -d -- "$cur" ) \
|
COMPREPLY=( $( compgen -d -- "$cur" ) \
|
||||||
$( compgen -f -X '!*.pkg.tar.gz' -- "$cur" ) )
|
$( compgen -f -X '!*.pkg.tar.*' -- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
h|V)
|
h|V)
|
||||||
@ -336,7 +336,7 @@ _pacman ()
|
|||||||
$( compgen -f -- "$cur" ) )
|
$( compgen -f -- "$cur" ) )
|
||||||
elif _instring $mod p; then
|
elif _instring $mod p; then
|
||||||
COMPREPLY=( $( compgen -d -- "$cur" ) \
|
COMPREPLY=( $( compgen -d -- "$cur" ) \
|
||||||
$( compgen -f -X '!*.pkg.tar.gz' -- "$cur" ) )
|
$( compgen -f -X '!*.pkg.tar.*' -- "$cur" ) )
|
||||||
elif _instring $mod u; then
|
elif _instring $mod u; then
|
||||||
COMPREPLY=''
|
COMPREPLY=''
|
||||||
return 0
|
return 0
|
||||||
|
@ -32,7 +32,7 @@ _pacman_opts_common=(
|
|||||||
_pacman_opts_pkgfile=(
|
_pacman_opts_pkgfile=(
|
||||||
'-d[Skip dependency checks]'
|
'-d[Skip dependency checks]'
|
||||||
'-f[Overwrite conflicting files]'
|
'-f[Overwrite conflicting files]'
|
||||||
'*:package file:_files -g "*.pkg.tar.gz(.)"'
|
'*:package file:_files -g "*.pkg.tar.*(.)"'
|
||||||
)
|
)
|
||||||
|
|
||||||
# options for passing to _arguments: subactions for --query command
|
# options for passing to _arguments: subactions for --query command
|
||||||
@ -120,7 +120,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.gz"'
|
'*:package file:_files -g "*.pkg.tar.*"'
|
||||||
;;
|
;;
|
||||||
query_group)
|
query_group)
|
||||||
_arguments -s : \
|
_arguments -s : \
|
||||||
@ -295,11 +295,11 @@ _pacman() {
|
|||||||
"$_pacman_opts_query_modifiers[@]" \
|
"$_pacman_opts_query_modifiers[@]" \
|
||||||
'*:package file:_files'
|
'*:package file:_files'
|
||||||
;;
|
;;
|
||||||
-Q*p*) # file *.pkg.tar.gz
|
-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.gz"'
|
'*: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