diff options
| author | Adam Vandenberg | 2010-05-28 17:23:12 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-01 20:36:31 -0700 |
| commit | 48bfd8a5856057f165c83ba9c7b07ceb28b1be72 (patch) | |
| tree | f8b20ce22e100a29e34814643d6f00708f1a7a02 /bin | |
| parent | 43c8bec720454636e2085f42bba220facc3e38f2 (diff) | |
| download | brew-48bfd8a5856057f165c83ba9c7b07ceb28b1be72.tar.bz2 | |
Add "brew --cellar (formula)"
If a formula name is passed to "brew --cellar", output the location of that
brew in the Cellar (which will be "brew --prefix (formula)" without a version
sub-folder.)
This allows for:
rm -rf `brew --cellar node`
for deleting all versions of node, installed or not.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -88,7 +88,11 @@ begin when '--repository' puts HOMEBREW_REPOSITORY when '--cellar' - puts HOMEBREW_CELLAR + if ARGV.named.empty? + puts HOMEBREW_CELLAR + else + puts *ARGV.formulae.collect {|f| HOMEBREW_CELLAR+f.name} + end when '--config' dump_config |
