From 3e140e73ee592dc5b22da34a8a99ae3c0b4d346d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 23 Jan 2020 13:49:27 -0300 Subject: Feat: GOROOT and GOPATH --- profile.dot.link | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit v1.2.3