Last active
June 28, 2024 22:38
-
-
Save molivier/271bba5d67de1583a8e3 to your computer and use it in GitHub Desktop.
Set $GOPATH on Mac OSX : bash_profile
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
# Edit ~/.bash_profile | |
export GOPATH=/Users/$USER/go | |
export PATH=$GOPATH/bin:$PATH | |
# Reload profile : source ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or you could do
$HOME/go
and then it would work if you are sharing your rc file between multiple systems.