aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-05-22 16:36:08 +0100
committerMax Howell2009-05-22 16:36:08 +0100
commit4317fee8c8029de1742990de22e0720092dfcaad (patch)
treea419c8909c918eecb2b63f775089aa19b94f480d
parent7b09f956642c296203ad7a3bcc205de027105360 (diff)
downloadbrew-4317fee8c8029de1742990de22e0720092dfcaad.tar.bz2
brew abv
Shows statistics about current Cellar
-rwxr-xr-xCellar/homebrew/brew4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cellar/homebrew/brew b/Cellar/homebrew/brew
index b107b7b18..794d2fe79 100755
--- a/Cellar/homebrew/brew
+++ b/Cellar/homebrew/brew
@@ -84,6 +84,10 @@ case ARGV[0]
end
puts "Created #{n} links"
+ when 'abv', 'stats', 'statistics'
+ cellar=$root+'Cellar'
+ print `find #{cellar} -type f | wc -l`.strip+' files,'+`du -hd0 #{cellar} | cut -d"\t" -f1`
+
when 'prune', 'pasteurize' then
puts "Pruned #{prune} files"