index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Carlos Diaz <839273@gmail.com> | 2010-10-13 00:16:35 -0430 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-14 06:53:12 -0500 |
commit | f5059038f2bd5eb30ccc8ec2ef55923896437906 (patch) | |
tree | f188a8c6b53f37708706c98f72a0be669bcfe7c7 /contrib/bash_completion.in | |
parent | de5f438aef1dd11c68658683996deab2b0714e0e (diff) |
-rw-r--r-- | contrib/bash_completion.in | 6 |
diff --git a/contrib/bash_completion.in b/contrib/bash_completion.in index bdc4754a..7f47f4b4 100644 --- a/contrib/bash_completion.in +++ b/contrib/bash_completion.in @@ -30,8 +30,7 @@ _arch_incomp() { _makepkg() { local cur opts prev COMPREPLY=() - cur=$(_get_cword) - prev=${COMP_WORDS[COMP_CWORD-1]} + _get_comp_words_by_ref cur prev if [[ $cur = -* && ! $prev =~ ^-(-(cleancache|config|help)$|\w*[Chp]) ]]; then opts=('allsource asroot clean cleancache config force geninteg help holdver ignorearch install log nobuild nocolor noconfirm nodeps noextract @@ -55,8 +54,7 @@ _pacman_pkg() { _pacman() { local common core cur database prev query remove sync upgrade o COMPREPLY=() - cur=$(_get_cword) - prev=${COMP_WORDS[COMP_CWORD-1]} + _get_comp_words_by_ref cur prev database=('asdeps asexplicit') query=('changelog check deps explicit file foreign groups info list owns search unrequired upgrades' 'c e g i k l m o p s t u') |