Skip to content

Instantly share code, notes, and snippets.

@nodesocket
Last active February 10, 2016 18:58
Show Gist options
  • Save nodesocket/44009bcfcc2991987bd9 to your computer and use it in GitHub Desktop.
Save nodesocket/44009bcfcc2991987bd9 to your computer and use it in GitHub Desktop.
Install go on OSX

What is my shell?

echo "$SHELL"
```

**If your shell is ZSH**

````shell
brew install go --cross-compile-common
brew install hg bzr
mkdir "$HOME"/go
cat <<"EOF">>~/.zshrc
export GOPATH=$HOME/go
PATH=$PATH:$GOPATH/bin
EOF

If your shell is BASH

brew install go --cross-compile-common
brew install hg bzr
mkdir "$HOME"/go
cat <<"EOF">>~/.bashrc
export GOPATH=$HOME/go
PATH=$PATH:$GOPATH/bin
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment