aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-08-23 13:09:15 +0100
committerMax Howell2009-08-24 01:04:53 +0100
commite3cd5d62c7a84391b4fefbc474c38e7b63b02c0b (patch)
treed6a743aeff99ebcb6161e49045bd5c05fc8cb395
parent181adae94bf4e5e7e726e4efc7aaddc8ca0ab7d4 (diff)
downloadhomebrew-e3cd5d62c7a84391b4fefbc474c38e7b63b02c0b.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?