From 24c166f42aab6b28a326e7cdbb3185e101814812 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sat, 7 Jan 2012 16:12:55 -0500 Subject: Fix bash completion for *.pkg.tar Signed-off-by: canyonknight Signed-off-by: Dan McGee --- contrib/bash_completion.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in index 78bde21d..d9e0c785 100644 --- a/contrib/bash_completion.in +++ b/contrib/bash_completion.in @@ -113,12 +113,12 @@ _pacman() { if [[ $(type -t compopt) = "builtin" ]]; then _pacman_file() { - compopt -o filenames; _filedir 'pkg.tar.*' + compopt -o filenames; _filedir 'pkg.tar*' } complete -F _pacman -o default pacman else _pacman_file() { - _filedir 'pkg.tar.*' + _filedir 'pkg.tar*' } complete -F _pacman -o filenames -o default pacman fi -- cgit v1.2.3-24-g4f1b From 102e6209c7c850f75b0594e002fc51db83e6c39b Mon Sep 17 00:00:00 2001 From: canyonknight Date: Sat, 7 Jan 2012 16:15:02 -0500 Subject: Fix zsh completion for *.pkg.tar Signed-off-by: canyonknight Signed-off-by: Dan McGee --- contrib/zsh_completion.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib') 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 ;; -- cgit v1.2.3-24-g4f1b