Last active
December 19, 2015 23:49
-
-
Save rastasheep/6037125 to your computer and use it in GitHub Desktop.
Little script for installing go lang.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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