]> gitweb.fluxo.info Git - rhatto/dotfiles/profile.git/commitdiff
Feat: GOROOT and GOPATH
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jan 2020 16:49:27 +0000 (13:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jan 2020 16:49:27 +0000 (13:49 -0300)
profile.dot.link

index ac01476f836afcf08996dccc1bf666a883a3bf7c..3d989d368736610971a1eaab72d236bb27ebf2a4 100644 (file)
@@ -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