From 74ad228591de67f33117eaaf1f1036b011b2c369 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 21 May 2015 22:49:07 +0300 Subject: [PATCH] .zshrc: Add paths for binary Golang distribution Signed-off-by: Alan Orth --- .zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index 4682a55..3269270 100644 --- a/.zshrc +++ b/.zshrc @@ -82,5 +82,13 @@ fi # If a private bin directory exists, add it to PATH [[ -d ~/bin ]] && PATH=$PATH:~/bin +# If a binary go distribution exists, add it to PATH +# From here: http://golang.org/dl/ +if [[ -d ~/Downloads/go ]]; then + export GOROOT=~/Downloads/go + export GOPATH=~/src/go + PATH=$PATH:$GOROOT/bin:$GOPATH/bin +fi + export PATH export MANPATH