Skip to content

Instantly share code, notes, and snippets.

@Pradumnasaraf
Created March 14, 2023 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pradumnasaraf/ca6f9a0507089a4c44881446cdda4aa3 to your computer and use it in GitHub Desktop.
Save Pradumnasaraf/ca6f9a0507089a4c44881446cdda4aa3 to your computer and use it in GitHub Desktop.
Set `GOPATH` variables in zshell, fish or bash.
# Set variables in .bashrc file
export GOPATH=$HOME/golang
export PATH=$PATH:$GOPATH/bin
# Set variables in .zshrc file
export GOPATH=$HOME/golang
export PATH=$PATH:$GOPATH/bin
# Set variables in config.fish file
# GOLANG configurations
set -x GOPATH $HOME/golang
set PATH $GOPATH/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment