Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Forked from eguven/brew-list.sh
Created October 5, 2020 06:30
Show Gist options
  • Save developer-guy/c6d55ad493fae02b77ad1c37e1cc0e98 to your computer and use it in GitHub Desktop.
Save developer-guy/c6d55ad493fae02b77ad1c37e1cc0e98 to your computer and use it in GitHub Desktop.
List all packages installed using Homebrew and their sizes
brew list | xargs -n1 -P8 -I {} \
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \
sort -h -r -k2 - | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment