-
-
Save rebyn/875e9018687caf69b5e7 to your computer and use it in GitHub Desktop.
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 -e | |
echo ' | |
PATH=$HOME/go/bin:$PATH | |
export GOPATH=$HOME | |
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
export EDITOR=vim | |
' >> ~/.profile | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends mosh build-essential mercurial vim screen | |
sudo apt-get install -y --no-install-recommends -t wheezy-backports git | |
curl https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz | tar xz | |
mv go go1.4 | |
git clone https://go.googlesource.com/go | |
(cd go/src && ./make.bash) | |
GOPATH=$HOME ~/go/bin/go get golang.org/x/tools/cmd/goimports golang.org/x/review/git-codereview | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go | |
echo ' | |
execute pathogen#infect() | |
let g:go_disable_autoinstall = 1 | |
let g:go_fmt_command = "goimports" | |
set autoindent | |
filetype plugin indent on | |
set dir=/tmp | |
set backupdir=/tmp | |
' > ~/.vimrc | |
echo ' | |
[alias] | |
change = codereview change | |
gofmt = codereview gofmt | |
mail = codereview mail | |
pending = codereview pending | |
rebase-work = codereview rebase-work | |
submit = codereview submit | |
sync = codereview sync | |
[user] | |
email = [email protected] | |
name = Andrew Gerrand | |
' > ~/.gitconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment