From 7af3aa80ee4f7f8bb2b6ad750274144c40eeda58 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 6 Jul 2010 16:33:05 +0200 Subject: tabs to spaces --- .zsh/zshenv/80_go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.zsh/zshenv/80_go') diff --git a/.zsh/zshenv/80_go b/.zsh/zshenv/80_go index 4ef13c9..bcb1c89 100644 --- a/.zsh/zshenv/80_go +++ b/.zsh/zshenv/80_go @@ -10,14 +10,16 @@ _GOROOT=$HOME/src/go if [ -d $_GOROOT ] ; then - export GOROOT=$_GOROOT - arch="$(uname -m)" - case "$arch" in + export GOROOT=$_GOROOT + arch="$(uname -m)" + case "$arch" in x86_64) export GOARCH="amd64";; i*86) export GOARCH="386";; *) export GOARCH="unsupported";; - esac + esac + os="$(uname)" + case "$os" in Linux) export GOOS="linux";; Darwin) export GOOS="darwin";; -- cgit v1.2.3-54-g00ecf