From a18050cfaf2ae501f3c20f68cbb85162c0bdd8f7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 3 Mar 2020 14:07:10 +0100 Subject: zshenv: don't set $GOROOT --- .zsh/zshenv/80_go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.zsh/zshenv/80_go') diff --git a/.zsh/zshenv/80_go b/.zsh/zshenv/80_go index 5c1d7d7..7460ee9 100644 --- a/.zsh/zshenv/80_go +++ b/.zsh/zshenv/80_go @@ -10,7 +10,6 @@ _GOROOT="/usr/local/go" if [ -d $_GOROOT ] ; then - export GOROOT="$_GOROOT" export GOPATH="$HOME/go" arch="$(uname -m)" @@ -27,10 +26,12 @@ if [ -d $_GOROOT ] ; then *) export GOOS="unsupported";; esac - path_append $GOROOT/bin + path_append $_GOROOT/bin if [ -d $GOPATH/bin ] ; then path_append $GOPATH/bin fi fi +alias gotip=$HOME/src/go/bin/go + # vim:ft=zsh -- cgit v1.2.3-54-g00ecf