Info also takes installed brews

This commit is contained in:
Adam Vandenberg 2009-07-31 09:17:10 -07:00 committed by Max Howell
parent 7478ff7804
commit fdc091ed42

View File

@ -19,7 +19,7 @@ _brew_to_completion()
brew_base=`dirname ${brew_base}`/..
# Commands that take an existing brew...
if [[ ($prev == "list") || ($prev == "ln") || ($prev == "rm") ]] ; then
if [[ ($prev == "list") || ($prev == "ln") || ($prev == "rm") || ($prev == "info") ]] ; then
cellar_contents=`ls ${brew_base}/Cellar/`
COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
return 0