From 3b3800341820b2ba96f609b8b73244155cd1095f Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Sat, 3 Dec 2016 10:41:12 +0100 Subject: [PATCH] GOPATH --- zsh/exports.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zsh/exports.zsh b/zsh/exports.zsh index de1549a..f7876f4 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -1,6 +1,13 @@ # 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"