aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <msabate@suse.com>2015-07-23 17:26:42 +0200
committerMiquel Sabaté <msabate@suse.com>2015-07-23 17:26:42 +0200
commitbff13202973ec7161578f5644d5485aef2199119 (patch)
tree0e17ff053f14b6ffddf7f9c268f7ff96f6dc3877
parent0a27043fb6de687faaccb5578976883593d6d18f (diff)
downloaddotfiles-bff13202973ec7161578f5644d5485aef2199119.tar.gz
dotfiles-bff13202973ec7161578f5644d5485aef2199119.zip
bash: fixed the PATH variable for Go programs
This happenned once I got Docker installed from both openSUSE and the master branch. So, as of now, for Go applications the lookup will be: 1. $GOROOT: for the compiler. 2. $PATH: for programs like docker, in which I prefer to use them from stable repos. 3. $GOPATH: the rest.
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 2871a11..74982b1 100644
--- a/bashrc
+++ b/bashrc
@@ -75,7 +75,7 @@ export CXX=/usr/bin/clang++
export GOROOT_BOOTSTRAP=/opt/go1.4
export GOROOT=$HOME/Projects/go
export GOPATH=$HOME/Projects/golang
-export PATH=$HOME/Projects/golang/bin:$HOME/Projects/go/bin:$PATH
+export PATH=$GOROOT/bin:$PATH:$GOPATH/bin
# The Review utility. See: https://github.com/mssola/review
export PATH=/opt/review:$PATH