aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-08-23 13:09:15 +0100
committerMax Howell2009-08-24 01:04:53 +0100
commit88ad8b9af6f2e7bd4dd187ac64f615ecdd57443e (patch)
tree94498540d660d9bc3609e0753cee9a385f11e695
parentb6ccdad53ef4c86ef266dd7fa7fa6292627448e0 (diff)
downloadbrew-88ad8b9af6f2e7bd4dd187ac64f615ecdd57443e.tar.bz2
brew ls with no further ARGV lists all installed kegs
-rwxr-xr-xbin/brew7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 47215866c..813cb41a7 100755
--- a/bin/brew
+++ b/bin/brew
@@ -45,7 +45,12 @@ begin
end
when 'ls', 'list'
- exec "find", *ARGV.kegs+%w[-not -type d -print]
+ if ARGV.named_empty?
+ ENV['CLICOLOR']=nil
+ exec 'ls', *ARGV.options<<HOMEBREW_CELLAR
+ else
+ exec "find", *ARGV.kegs+%w[-not -type d -print]
+ end
when 'edit'
if ARGV.named_empty?