declare -i i=$COMP_CWORD-1
while [ $i -gt 0 ]; do
if [[ ${COMP_WORDS[i]} != -* \
|| ${COMP_WORDS[i]} == "--cache" \
|| ${COMP_WORDS[i]} == "--cellar" \
declare -i i=$COMP_CWORD-1
while [ $i -gt 0 ]; do
if [[ ${COMP_WORDS[i]} != -* \
|| ${COMP_WORDS[i]} == "--cache" \
|| ${COMP_WORDS[i]} == "--cellar" \
- COMPREPLY=( $(compgen -W 'cleanup create edit home info \
- install link list log outdated prune remove search \
- uninstall unlink update' -- "$cur") )
+ COMPREPLY=( $(compgen -W 'cat cleanup create deps doctor \
+ edit home info install link list log outdated prune \
+ remove rm search uninstall unlink up update uses \
+ $EXTCMD' \
+ -- "$cur") )