Skip to content

Instantly share code, notes, and snippets.

@0xBADC0FFEE
Created March 25, 2019 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xBADC0FFEE/0fe9e42bff77f34626970f32601bd11e to your computer and use it in GitHub Desktop.
Save 0xBADC0FFEE/0fe9e42bff77f34626970f32601bd11e to your computer and use it in GitHub Desktop.
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