Skip to content

Instantly share code, notes, and snippets.

@bfontaine
Last active August 29, 2015 14:16
Show Gist options
  • Save bfontaine/87e7fcd69ab8c7b47b2d to your computer and use it in GitHub Desktop.
Save bfontaine/87e7fcd69ab8c7b47b2d to your computer and use it in GitHub Desktop.
Remove docs from installed Homebrew formulae. I ran short of disk space while installing something, and this little command got me 600MB back. Use at your own risk.
\ls -1 /usr/local/Cellar/*/*/share/doc | grep doc: | cut -d: -f1 | xargs rm -rf; brew prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment