_brew_formula "$cur"
return 0
;;
- "link"|"remove"|"uninstall"|"unlink")
+ "link"|"remove"|"rm"|"uninstall"|"unlink")
_brew_formula_installed "$cur"
return 0
;;
"create")
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--macports' \
- -- "$cur") )
+ COMPREPLY=( $(compgen -W '--macports --fink \
+ --cache' -- "$cur") )
fi
return 0
;;
"info")
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--github' \
+ COMPREPLY=( $(compgen -W '--all --github' \
-- "$cur") )
else
_brew_formula "$cur"
;;
"install")
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--HEAD -H \
- --debug -d --interactive -i
- --verbose -v --ignore-dependencies' \
+ COMPREPLY=( $(compgen -W '--git --HEAD -H \
+ --debug -d --force -f \
+ --interactive -i --verbose -v \
+ --ignore-dependencies --use-llvm' \
-- "$cur") )
else
_brew_formula "$cur"
fi
return 0
;;
- "search"|"update"|"--config")
- return 0
- ;;
*)
for c in $EXTCMD; do
if [ "$cmd" = "$c" ]; then
--help --prefix --version -v -H' \
-- "$cur") )
elif [ "$cmd" = "" ]; then
- COMPREPLY=( $(compgen -W 'cat cleanup create deps edit home \
- info install link list log outdated prune remove \
- search uninstall unlink update uses $EXTCMD' \
+ 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") )
fi
}