How to List Brew Dependencies

Both of these are useful commands but I wanted a way to list all installed brews along with their dependencies. This is the “one-liner” I came up with after some experimentation.

And if you want to do the same thing in fish:

set DEFAULT "\e[0m";  set BLUE "\e[0;34m";  \
for cask in (brew list); echo -e $BLUE$cask $DEFAULT \
(brew deps $cask); end