Document brew cleanup

This commit is contained in:
Max Howell 2010-01-18 08:30:29 +00:00
parent 7762b23c53
commit 3bf6c5f9c9
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ _brew_to_completion()
prev="${COMP_WORDS[COMP_CWORD-1]}" prev="${COMP_WORDS[COMP_CWORD-1]}"
# We only complete unabbreviated commands... # We only complete unabbreviated commands...
actions="configure create edit generate homepage info install list link options prune remove search unlink update uses" actions="cleanup configure create edit generate homepage info install list link options prune remove search unlink update uses"
# Subcommand list # Subcommand list
if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew ) ]] ; then if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew ) ]] ; then
@ -32,7 +32,7 @@ _brew_to_completion()
;; ;;
# Commands that take an existing brew... # Commands that take an existing brew...
abv|info|list|link|ls|ln|rm|remove|uninstall|unlink) abv|cleanup|info|list|link|ls|ln|rm|remove|uninstall|unlink)
cellar_contents=`ls ${brew_base}/Cellar/` cellar_contents=`ls ${brew_base}/Cellar/`
COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) )
return 0 return 0

View File

@ -99,6 +99,7 @@ Commands:
unlink formula ... unlink formula ...
home formula ... home formula ...
info [formula] [--github] info [formula] [--github]
cleanup [formula]
prune prune
update update