aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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?