Created
January 21, 2014 01:25
-
-
Save mistydemeo/8532718 to your computer and use it in GitHub Desktop.
Lists installed homebrew formulae, with options used to install them if applicable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
formulae=$(brew ls) | |
for formula in $formulae; do | |
receipt="$(brew --prefix)/opt/$formula/INSTALL_RECEIPT.json" | |
options=$(jq < $receipt '.used_options[]' -r | tr "\n" " ") | |
echo "$formula $options" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment