From 77747d6afafbeb00e43dd11a86a49f7675455774 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 1 Jun 2017 08:20:42 +0200 Subject: zshenv/80_go: move $GOOROOT and $GOPATH to standard locations --- .zsh/zshenv/80_go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to '.zsh/zshenv') 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 +# Copyright © 2010-2017 Tobias Klauser # 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";; -- cgit v1.2.3-54-g00ecf