From: Silvio Rhatto Date: Thu, 23 Jan 2020 16:49:27 +0000 (-0300) Subject: Feat: GOROOT and GOPATH X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3e140e73ee592dc5b22da34a8a99ae3c0b4d346d;p=rhatto%2Fdotfiles%2Fprofile.git Feat: GOROOT and GOPATH --- 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