Skip to content

Instantly share code, notes, and snippets.

@onezerodigits
Created August 19, 2018 20:43
Show Gist options
  • Save onezerodigits/0d8b2a770fb15296f92728e62ac50239 to your computer and use it in GitHub Desktop.
Save onezerodigits/0d8b2a770fb15296f92728e62ac50239 to your computer and use it in GitHub Desktop.
Script to uninstall and reinstall brew apps, useful after migration
#!/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