Skip to content

Instantly share code, notes, and snippets.

@jabenninghoff
Created September 11, 2016 14:51
Show Gist options
  • Save jabenninghoff/5d2b3e6c4d46f809a60bc452aa9f61b6 to your computer and use it in GitHub Desktop.
Save jabenninghoff/5d2b3e6c4d46f809a60bc452aa9f61b6 to your computer and use it in GitHub Desktop.
List all installed brews along with their dependencies
#!/bin/sh
# one-liner courtesy of http://zanshin.net/2014/02/03/how-to-list-brew-dependencies/
brew list | while read cask; do echo -n "$cask ->"; brew deps $cask | awk '{printf(" %s ", $0)}'; echo ""; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment