From 3bf6c5f9c9afdbfe029c163673cc849be3116d9d Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 18 Jan 2010 08:30:29 +0000 Subject: [PATCH] Document brew cleanup --- Library/Contributions/brew_bash_completion.sh | 4 ++-- Library/Homebrew/extend/ARGV.rb | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 756621cf54..8b085d0a68 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -13,7 +13,7 @@ _brew_to_completion() prev="${COMP_WORDS[COMP_CWORD-1]}" # 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 if [[ ( ${COMP_CWORD} -eq 1 ) && ( ${COMP_WORDS[0]} == brew ) ]] ; then @@ -32,7 +32,7 @@ _brew_to_completion() ;; # 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/` COMPREPLY=( $(compgen -W "${cellar_contents}" -- ${cur}) ) return 0 diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb index 85f96eff64..19d8f9b0c7 100644 --- a/Library/Homebrew/extend/ARGV.rb +++ b/Library/Homebrew/extend/ARGV.rb @@ -99,6 +99,7 @@ Commands: unlink formula ... home formula ... info [formula] [--github] + cleanup [formula] prune update