From 2c4229696eeab0891c80a4514ca195541f0bd512 Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Thu, 25 Sep 2014 09:57:20 +0200 Subject: [PATCH] Add the Go language on OS X. Signed-off-by: Jacob Kiers --- tilde/bash_profile.bash | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tilde/bash_profile.bash b/tilde/bash_profile.bash index 9305cb3..20c72c1 100644 --- a/tilde/bash_profile.bash +++ b/tilde/bash_profile.bash @@ -75,6 +75,14 @@ for file in ~/dotfiles/includes/bash_{prompt,aliases,functions,git,completion}.b done unset file +if [ `uname` == 'Darwin' ]; then + export GOROOT="/usr/local/Cellar/go/1.3/libexec" + export GOPATH=$HOME/go + + launchctl setenv GOROOT $GOROOT + launchctl setenv GOPATH $GOPATH +fi + # Tell ls to be colourful export CLICOLOR=1