-
-
Save concatime/3f262a0bc64b0ba77793024e6138122f to your computer and use it in GitHub Desktop.
Go! — Simple as » bash <(curl -s https://gist.githubusercontent.com/concatime/3f262a0bc64b0ba77793024e6138122f/raw)
This file contains hidden or 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
GOVER=1.9.1 | |
curl https://storage.googleapis.com/golang/go$GOVER.linux-amd64.tar.gz --silent | sudo tar xzC /usr/local | |
cd | |
echo . \~/.goenv >> .bashrc | |
cat > .goenv <<EOT | |
for i in /usr/local/go ~/go | |
do PATH+=:\$i/bin | |
done | |
export PATH | |
GOCODE=\$(go env GOPATH) | |
CDPATH=.:\$GOCODE/src/github.com:\$GOCODE/src/golang.org:\$GOCODE/src | |
EOT | |
printf 'Please run: `exec bash`,\nAdd `call dein#add("fatih/vim-go")` to .vimrc\nExecute`vim +GoInstallBinaries +qall`\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment