Created
March 25, 2019 09:44
-
-
Save 0xBADC0FFEE/0fe9e42bff77f34626970f32601bd11e to your computer and use it in GitHub Desktop.
Homebrew packages tree of deps
This file contains 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
brewlist () { | |
if tput setaf 1 &> /dev/null | |
then | |
reset=$(tput sgr0) | |
blue=$(tput setaf 33) | |
else | |
reset="\e[0m" | |
blue="\e[1;34m" | |
fi | |
brew leaves | while read bfile | |
do | |
brew desc $bfile | |
echo -n "$blue ->" | |
brew deps $bfile | awk '{printf(" %s ", $0)}' | |
echo "$reset" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment