Created
August 19, 2018 20:43
-
-
Save onezerodigits/0d8b2a770fb15296f92728e62ac50239 to your computer and use it in GitHub Desktop.
Script to uninstall and reinstall brew apps, useful after migration
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
#!/bin/bash | |
for i in `brew list -1` | |
do | |
if [[ "$i" == python.* ]] || [[ "$i" == ruby.* ]] | |
then | |
continue | |
fi | |
brew rm --force $i && brew install $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment