From bff13202973ec7161578f5644d5485aef2199119 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Thu, 23 Jul 2015 17:26:42 +0200 Subject: 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. --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bashrc') 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 -- cgit v1.2.3