fix subshelling for GOPATH

This commit is contained in:
Barak Michener 2015-02-06 15:04:03 -05:00
parent 4a117ae1ba
commit 357d521798

View file

@ -10,7 +10,9 @@ bindkey '\e[6~' end-of-history # Page down key
bindkey '\e[2~' redisplay # Insert key
bindkey '\e[5~' insert-last-word # Page up key
export GOPATH="$HOME/.go/"
if [ -z "$GOPATH" ]; then
export GOPATH="$HOME/.go/"
fi
# remove /usr/games and /usr/X11R6/bin if you want
PATH=$HOME/bin:/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/games:/usr/X11R6/bin:/$HOME/.gem/ruby/1.9.1/bin:$HOME/.cabal/bin:$HOME/.go/bin:/usr/lib/go/bin:$PATH; export PATH