Skip to content

Instantly share code, notes, and snippets.

@dade80vr
Last active September 4, 2017 15:25
Show Gist options
  • Save dade80vr/a7373df519f92c824b2827ef5cb6368f to your computer and use it in GitHub Desktop.
Save dade80vr/a7373df519f92c824b2827ef5cb6368f to your computer and use it in GitHub Desktop.
Set Mac HomeBrew permission to current user
#!/bin/bash
sudo chown -R $(whoami) /usr/local
# Additionally, you could use (remove #)
# chgrp -R admin /usr/local
# chmod -R g+w /usr/local
# chgrp -R admin /Library/Caches/Homebrew
# chmod -R g+w /Library/Caches/Homebrew
# dseditgroup -o edit -a $USER -t user admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment