Skip to content

Instantly share code, notes, and snippets.

@munho
Created May 8, 2017 08:27
Show Gist options
  • Select an option

  • Save munho/6ac412f2aa77384637c79a7e525b8b36 to your computer and use it in GitHub Desktop.

Select an option

Save munho/6ac412f2aa77384637c79a7e525b8b36 to your computer and use it in GitHub Desktop.
reinstall homebrew
#!/bin/bash
# https://github.com/Homebrew/homebrew/issues/31125
for i in `brew list -1`
do
if [[ "$i" == python.* ]] || [[ "$i" == ruby.* ]] || [[ "$i" == android-* ]]
then
continue
fi
brew rm --force $i && brew install $i
#echo $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment