diff options
Diffstat (limited to 'bash_completion.in')
-rw-r--r-- | bash_completion.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bash_completion.in b/bash_completion.in index b9ed69c..9feef74 100644 --- a/bash_completion.in +++ b/bash_completion.in @@ -1,11 +1,12 @@ +#!/hint/bash # License: Unspecified _devtools_compgen() { local i r COMPREPLY=($(compgen -W '$*' -- "$cur")) for ((i=1; i < ${#COMP_WORDS[@]}-1; i++)); do - for r in ${!COMPREPLY[@]}; do - if [[ ${COMP_WORDS[i]} = ${COMPREPLY[r]} ]]; then + for r in "${!COMPREPLY[@]}"; do + if [[ ${COMP_WORDS[i]} = "${COMPREPLY[r]}" ]]; then unset 'COMPREPLY[r]'; break fi done @@ -14,7 +15,7 @@ _devtools_compgen() { _archco_pkg() { _devtools_compgen "$( - \pacman -$1 + command pacman "-$1" )" } |