diff --git a/autocomplete/bash_autocomplete b/autocomplete/bash_autocomplete index a118bda..f0f6241 100755 --- a/autocomplete/bash_autocomplete +++ b/autocomplete/bash_autocomplete @@ -3,7 +3,7 @@ : ${PROG:=$(basename ${BASH_SOURCE})} _cli_bash_autocomplete() { - if [[ "${COMP_WORDS[@]:0:$COMP_CWORD}" != "source" ]]; then + if [[ "${COMP_WORDS[0]}" != "source" ]]; then local cur opts base COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}"