- if [[ $COMP_CWORD -ge 1 ]] ; then
- local current_word="${COMP_WORDS[COMP_CWORD]}"
- if [[ $COMP_CWORD -eq 1 ]] ; then
- COMPREPLY=( $(compgen -W "$commands" -- "$current_word") )
- return 0
- else
- local second_word=${COMP_WORDS[1]}
- case $second_word in
- config)
- if [[ $COMP_CWORD -eq 2 ]] ; then
- COMPREPLY=( $(compgen -W "$settings" -- "$current_word") )
- return 0
- fi
- ;;
- esac
- fi
- fi
+ if [[ $COMP_CWORD -ge 1 ]] ; then
+ local current_word="${COMP_WORDS[COMP_CWORD]}"
+ if [[ $COMP_CWORD -eq 1 ]] ; then
+ COMPREPLY=( $(compgen -W "$commands" -- "$current_word") )
+ return 0
+ else
+ local second_word=${COMP_WORDS[1]}
+ case $second_word in
+ config)
+ if [[ $COMP_CWORD -eq 2 ]] ; then
+ COMPREPLY=( $(compgen -W "$settings" -- "$current_word") )
+ return 0
+ fi
+ ;;
+ esac
+ fi
+ fi