Don't set GO* env vars if ~/go exists
~/go is also used as a cache by a system-installed go compiler, and setting GOROOT messes this up.
This commit is contained in:
parent
269bb3d7b0
commit
8ec9ed6f38
13
.zshenv
13
.zshenv
|
@ -277,19 +277,6 @@ case "$FQDN" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -d $HOME/go ]
|
|
||||||
then
|
|
||||||
export GOROOT=$HOME/go
|
|
||||||
export GOOS=linux
|
|
||||||
case `uname -m` in
|
|
||||||
x86_64)
|
|
||||||
export GOARCH=amd64
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
export GOARCH=386
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$FQDN" in
|
case "$FQDN" in
|
||||||
tsimri.wsr.ac.at)
|
tsimri.wsr.ac.at)
|
||||||
export GET_PASS_FILES="/home/hjp/wrk/admin/info/pwd_work.gpg /home/hjp/Notes/pw.gpg"
|
export GET_PASS_FILES="/home/hjp/wrk/admin/info/pwd_work.gpg /home/hjp/Notes/pw.gpg"
|
||||||
|
|
Loading…
Reference in New Issue