Skip to content

Instantly share code, notes, and snippets.

@concatime
Last active October 19, 2017 19:28
Show Gist options
  • Save concatime/3f262a0bc64b0ba77793024e6138122f to your computer and use it in GitHub Desktop.
Save concatime/3f262a0bc64b0ba77793024e6138122f to your computer and use it in GitHub Desktop.
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