Skip to content

Instantly share code, notes, and snippets.

@rastasheep
Last active December 19, 2015 23:49
Show Gist options
  • Save rastasheep/6037125 to your computer and use it in GitHub Desktop.
Save rastasheep/6037125 to your computer and use it in GitHub Desktop.
Little script for installing go lang.
#!/bin/bash
# Stuff we need: bison, gcc, libc6-dev, ed, gawk, mercurial
# Folder for go instalation
mkdir ~/go
hg clone -r release https://go.googlecode.com/hg/ ~/go
export PATH=~/go/bin:$PATH
cd ~/go/src
./all.bash
# Export go exec folder to path
echo "export PATH=$PATH:$HOME/go/bin" >> ~/.zshrc
# Export project's dir to GOPATH
# ~/gocode -- folder for our project's
echo "export GOPATH=$HOME/gocode/ >> ~/.zshrc
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment