Last active
September 4, 2017 15:25
-
-
Save dade80vr/a7373df519f92c824b2827ef5cb6368f to your computer and use it in GitHub Desktop.
Set Mac HomeBrew permission to current user
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 | |
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