Appease the masses

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-03-16 19:09:24 -05:00
parent ab01c1e357
commit ee0041f290

View File

@ -351,11 +351,14 @@ _brew ()
while [[ $i -lt $COMP_CWORD ]]; do
local s="${COMP_WORDS[i]}"
case "$s" in
--*) cmd="$s"
--*)
cmd="$s"
break
;;
-*) ;;
*) cmd="$s"
-*)
;;
*)
cmd="$s"
break
;;
esac
@ -404,8 +407,7 @@ _brew ()
# subcommands have their own completion functions
case "$cmd" in
--cache|--cellar|--prefix)
__brew_complete_formulae ;;
--cache|--cellar|--prefix) __brew_complete_formulae ;;
audit|cat|edit|home) __brew_complete_formulae ;;
link|ln|test|unlink) __brew_complete_installed ;;
upgrade) __brew_complete_outdated ;;