diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-28 02:25:50 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-28 02:25:50 +0200 |
commit | e66edf817b045375645fbd4645eddb15daded4d0 (patch) | |
tree | 4e0fecc294e10daa8045122545e9c92100f583aa /contrib | |
parent | 38c0ec868be6e2f45ffcc61d95cfb85294f623c1 (diff) | |
download | pacman-e66edf817b045375645fbd4645eddb15daded4d0.tar.gz pacman-e66edf817b045375645fbd4645eddb15daded4d0.tar.xz |
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>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/bash_completion.in | 15 |
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 |