Skip to content

Instantly share code, notes, and snippets.

@allex
Last active February 1, 2019 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allex/5f62281ce7759e22068437c2934499b9 to your computer and use it in GitHub Desktop.
Save allex/5f62281ce7759e22068437c2934499b9 to your computer and use it in GitHub Desktop.

brew daily commands (Continuous Update)

GistID: 5f62281ce7759e22068437c2934499b9

GistURL: https://git.io/fhy5I

Author: Allex Wang (@allex)

brew cleanup formula with multiple versions

cd $(brew --cellar) && find . -maxdepth 2 |awk -F/ '$3 != "" { c[$2]++; } END { for (i in c) if (c[i] > 1) print i; }'|xargs brew cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment