Skip to content

Instantly share code, notes, and snippets.

@molivier
Last active January 3, 2024 09:57
Show Gist options
  • Star 61 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save molivier/271bba5d67de1583a8e3 to your computer and use it in GitHub Desktop.
Save molivier/271bba5d67de1583a8e3 to your computer and use it in GitHub Desktop.
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
@elacy
Copy link

elacy commented May 8, 2020

or you could do $HOME/go and then it would work if you are sharing your rc file between multiple systems.

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