Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Homebrew packages tree of deps
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
You can’t perform that action at this time.