#Loop while there are still package installed
while [[ `brew list | wc -l` -ne 0 ]]; do
#Interate over each installed package
for EACH in `brew list`; do
#Uninstall each package
brew uninstall $EACH --force
done
done
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter