summaryrefslogtreecommitdiff
path: root/.zsh/zshenv
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-12-28 17:16:21 +0100
committerTobias Klauser <tklauser@distanz.ch>2013-12-28 17:16:21 +0100
commit0e905840340cf6d3da96e0bdc51488dbe9d1b814 (patch)
tree890dddbf3f1cef4683efbf1b7b4c55d6fe804a0e /.zsh/zshenv
parentfdab944a2caad2de8acc0d818bb97aa255d1e6d5 (diff)
Correction again
Diffstat (limited to '.zsh/zshenv')
-rw-r--r--.zsh/zshenv/80_go7
1 files changed, 5 insertions, 2 deletions
diff --git a/.zsh/zshenv/80_go b/.zsh/zshenv/80_go
index fb35add..9da79e8 100644
--- a/.zsh/zshenv/80_go
+++ b/.zsh/zshenv/80_go
@@ -7,10 +7,13 @@
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git
-_GOROOT=$HOME/src/gospace/
+_GOROOT=/opt/local/go/
if [ -d $_GOROOT ] ; then
+
export GOROOT=$_GOROOT
+ export GOPATH=$HOME/src/gospace/
+
arch="$(uname -m)"
case "$arch" in
x86_64) export GOARCH="amd64";;
@@ -26,7 +29,7 @@ if [ -d $_GOROOT ] ; then
*) export GOOS="unsupported";;
esac
- path_append $_GOROOT/bin
+ path_append $GOROOT/bin
fi
# vim:ft=zsh