diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-01-23 13:49:27 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-01-23 13:49:27 -0300 |
commit | 3e140e73ee592dc5b22da34a8a99ae3c0b4d346d (patch) | |
tree | e076965885b8e2b7fdd20e6e78e5e8b228bdada4 | |
parent | df7e657f31671e8789c55f44179a0d294c854a1c (diff) | |
download | profile-3e140e73ee592dc5b22da34a8a99ae3c0b4d346d.tar.gz profile-3e140e73ee592dc5b22da34a8a99ae3c0b4d346d.tar.bz2 |
Feat: GOROOT and GOPATH
-rw-r--r-- | profile.dot.link | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link index ac01476..3d989d3 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -75,6 +75,20 @@ if [ -d "$HOME/.composer/vendor/bin" ]; then PATH="$HOME/.composer/vendor/bin:$PATH" fi +# Add Go into PATH +if [ -e "/usr/lib/go" ]; then + export GOROOT="/usr/lib/go" + + PATH=$PATH:$GOROOT/bin +fi + +# Add local Go into PATH +if [ -e "$HOME/apps/go" ]; then + export GOPATH="$HOME/apps/go" + + PATH=$PATH:$GOPATH/bin +fi + # Export PATH export PATH=$PATH |