blob: 3970e2f5fc0375247462601b7ff1e49f975179a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# zshenv/80_go
#
# Set variables related to the Go programming language
#
# Copyright © 2010-2015 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/
if [ -d $_GOROOT ] ; then
export GOROOT=$_GOROOT
export GOPATH=$HOME/src/gospace
arch="$(uname -m)"
case "$arch" in
x86_64) export GOARCH="amd64";;
i*86) export GOARCH="386";;
*) export GOARCH="unsupported";;
esac
os="$(uname)"
case "$os" in
Linux) export GOOS="linux";;
Darwin) export GOOS="darwin";;
*) export GOOS="unsupported";;
esac
path_append $GOROOT/bin
fi
# vim:ft=zsh
|