Skip to content

Instantly share code, notes, and snippets.

@praveenperera
Last active December 24, 2019 04:49
Show Gist options
  • Save praveenperera/b5407236675a68b39283c9bc8000d822 to your computer and use it in GitHub Desktop.
Save praveenperera/b5407236675a68b39283c9bc8000d822 to your computer and use it in GitHub Desktop.
brew permissions
sudo chown -R $(whoami) /usr/local
sudo chown -R $(whoami) $(brew --prefix)/*
sudo chown -R "$USER":admin /usr/local
sudo chown -R "$USER":admin /Library/Caches/Homebrew
@praveenperera
Copy link
Author

praveenperera commented Dec 24, 2019

brew list -1 | while read line; do brew unlink $line; brew link $line; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment