diff --git a/bin/brew b/bin/brew index b1d54fdcb6..256b2d5f90 100755 --- a/bin/brew +++ b/bin/brew @@ -51,14 +51,13 @@ begin when 'ls', 'list' if ARGV.flag? '--unbrewed' - # Taken from the homebrew wiki (http://wiki.github.com/mxcl/homebrew) dirs = HOMEBREW_PREFIX.children.select { |pn| pn.directory? }.collect { |pn| pn.basename.to_s } dirs -= ['Library', 'Cellar', '.git'] Dir.chdir HOMEBREW_PREFIX exec 'find', *dirs + %w[-type f ( ! -iname .ds_store ! -iname brew )] elsif ARGV.named_empty? ENV['CLICOLOR']=nil - exec 'ls', *ARGV.options<