From 94c57824efd7e1e86599bbfc37418252764bc471 Mon Sep 17 00:00:00 2001 From: Gogs Date: Sat, 3 Dec 2016 10:43:49 +0000 Subject: [PATCH] GOPATH after --- zsh/exports.zsh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/zsh/exports.zsh b/zsh/exports.zsh index f7876f4..04f14bd 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -1,13 +1,6 @@ # The path export PATH=$PATH/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/opt/android-ndk:/opt/android-sdk/tools/:/opt/android-sdk/build-tools/24.0.0/:/usr/lib/emscripten:$HOME/.script/check:$HOME/.gem/ruby/2.3.0/bin:$HOME/.scripts:$HOME/.more-scripts/stop/:$HOME/.more-scripts/ -# for go -if [ -d /opt/go/bin ]; then - export GOROOT=/opt/go - export GOPATH=$HOME/srcs/go - export PATH=$PATH:$GOROOT/bin -fi - # My editor export EDITOR="vim" @@ -25,3 +18,12 @@ export GOPATH="$HOME/.config/go" export CC="clang" export CXX="clang++" export WINEDEBUG=-all + +# for go +if [ -d /opt/go/bin ]; then + export GOROOT=/opt/go + export GOPATH=$HOME/srcs/go + export PATH=$PATH:$GOROOT/bin +fi + +