Created
May 10, 2016 10:58
-
-
Save ernado/239f6141c3104248adf70f27c360fb02 to your computer and use it in GitHub Desktop.
/etc/profile.d/golang.sh
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 | |
# sets envs for golang | |
if [ -z "$GOPATH" ]; then | |
export GOROOT="/usr/local/go" | |
export GOPATH="/go" | |
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment