summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-27 19:25:50 -0500
committerDan McGee <dan@archlinux.org>2012-03-27 19:25:50 -0500
commite66edf817b045375645fbd4645eddb15daded4d0 (patch)
tree4e0fecc294e10daa8045122545e9c92100f583aa
parent38c0ec868be6e2f45ffcc61d95cfb85294f623c1 (diff)
Drop bash 3.2 completion support
This is pretty old at this point, and upstream bash completions project uses compopt heavily. Completions are by no means a make-or-break feature anyway, so this is not critical. This basically reverts commit 6f4f9c1b66ed85 made in 2010. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--contrib/bash_completion.in15
1 files changed, 4 insertions, 11 deletions
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in
index 529734c3..be2406dc 100644
--- a/contrib/bash_completion.in
+++ b/contrib/bash_completion.in
@@ -111,18 +111,11 @@ _pacman() {
true
}
-if [[ $(type -t compopt) = "builtin" ]]; then
- _pacman_file() {
- compopt -o filenames; _filedir 'pkg.tar*'
- }
- complete -F _pacman -o default pacman
-else
- _pacman_file() {
- _filedir 'pkg.tar*'
- }
- complete -F _pacman -o filenames -o default pacman
-fi
+_pacman_file() {
+ compopt -o filenames; _filedir 'pkg.tar*'
+}
+complete -F _pacman -o default pacman
complete -F _makepkg -o default makepkg
complete -F _pacman_key -o default pacman-key