From e66edf817b045375645fbd4645eddb15daded4d0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 27 Mar 2012 19:25:50 -0500 Subject: 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 --- contrib/bash_completion.in | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'contrib') 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 -- cgit v1.2.3-70-g09d2