brew ls with no further ARGV lists all installed kegs

This commit is contained in:
Max Howell 2009-08-23 13:09:15 +01:00
parent b6ccdad53e
commit 88ad8b9af6

View File

@ -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?