Homepage takes any formula, installed or not.

Signed-off-by: Max Howell <max@methylblue.com>
This commit is contained in:
Adam Vandenberg 2009-08-03 11:13:08 +08:00 committed by Max Howell
parent 33b90794e1
commit bfa17cc16c

View File

@ -28,14 +28,14 @@ _brew_to_completion()
case ${prev} in
# Commands that take a formula...
edit|install|home)
edit|install|home|homepage)
formulae=`ls ${brew_base}/Library/Formula/ | sed "s/\.rb//g"`
COMPREPLY=( $(compgen -W "${formulae}" -- ${cur}) )
return 0
;;
# Commands that take an existing brew...
abv|home|homepage|info|list|link|ls|ln|rm|uninstall)
abv|info|list|link|ls|ln|rm|uninstall)
cellar_contents=`ls ${brew_base}/Cellar/`
COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
return 0