index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2012-03-27 19:25:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-27 19:25:50 -0500 |
commit | e66edf817b045375645fbd4645eddb15daded4d0 (patch) | |
tree | 4e0fecc294e10daa8045122545e9c92100f583aa /contrib | |
parent | 38c0ec868be6e2f45ffcc61d95cfb85294f623c1 (diff) |
-rw-r--r-- | contrib/bash_completion.in | 15 |
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 |