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 + +