From e7020db02d6ac7858474a135a7e5d92392569327 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Thu, 6 Jul 2017 10:43:40 +0100 Subject: [PATCH] Platform specific GO paths --- zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 15e1943..5f72384 100644 --- a/zshrc +++ b/zshrc @@ -146,8 +146,10 @@ auto-ls () { chpwd_functions=( auto-ls $chpwd_functions ) # Go Lang stuff -export GOPATH=$HOME/Development/go -export PATH="$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin" +test "$platform" = 'osx' && export GOPATH="$HOME/Development/go" +test "$platform" = 'osx' && export PATH="$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin" +test "$platform" = 'linux' && export GOPATH="$HOME/mygo" +test "$platform" = 'linux' && export PATH="$PATH:/usr/lib/go-1.7/bin:$GOPATH/bin" # GnuPG stuff GPG_TTY=`tty`