aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorKieran Pilkington2009-09-25 19:04:34 +1200
committerMax Howell2009-09-29 16:26:37 +0100
commitaedaaf79bf0751d80879cbdab434b3d445f989cb (patch)
tree68a6d6ec1c13d684c8a5beade0c7c22b63c0e7a9 /bin
parent14818039ae920d43e86e39cc9f9dd106ce0c8fb7 (diff)
downloadbrew-aedaaf79bf0751d80879cbdab434b3d445f989cb.tar.bz2
brew list --unbrewed
Very quick way to find files not installed by homebrew. Taken from a command by mxcl on the homebrew wiki. .DS_Store files and bin/brew are ignored.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 873ca4c11..124ba5429 100755
--- a/bin/brew
+++ b/bin/brew
@@ -39,7 +39,9 @@ begin
end
when 'ls', 'list'
- if ARGV.named_empty?
+ if ARGV.flag? '--unbrewed'
+ puts unbrewed_files
+ elsif ARGV.named_empty?
ENV['CLICOLOR']=nil
exec 'ls', *ARGV.options<<HOMEBREW_CELLAR
elsif ARGV.verbose? or not $stdout.tty?