summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-06-01 08:20:42 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-06-01 08:20:42 +0200
commit77747d6afafbeb00e43dd11a86a49f7675455774 (patch)
treec248ae96125688e7815bef3f5e78f2e0c9d77239
parent89c806fd09c632b672fa0291fb995cca6859dea0 (diff)
zshenv/80_go: move $GOOROOT and $GOPATH to standard locations
-rw-r--r--.zsh/zshenv/80_go10
1 files changed, 4 insertions, 6 deletions
diff --git a/.zsh/zshenv/80_go b/.zsh/zshenv/80_go
index 3480627..5c1d7d7 100644
--- a/.zsh/zshenv/80_go
+++ b/.zsh/zshenv/80_go
@@ -2,17 +2,16 @@
#
# Set variables related to the Go programming language
#
-# Copyright © 2010-2016 Tobias Klauser <tklauser@distanz.ch>
+# Copyright © 2010-2017 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git
-_GOROOT=$HOME/go
+_GOROOT="/usr/local/go"
if [ -d $_GOROOT ] ; then
-
- export GOROOT=$_GOROOT
- export GOPATH=$HOME/src/gospace
+ export GOROOT="$_GOROOT"
+ export GOPATH="$HOME/go"
arch="$(uname -m)"
case "$arch" in
@@ -22,7 +21,6 @@ if [ -d $_GOROOT ] ; then
esac
os="$(uname)"
-
case "$os" in
Linux) export GOOS="linux";;
Darwin) export GOOS="darwin";;