Skip to content

Instantly share code, notes, and snippets.



Forked from nf/
Created Oct 4, 2020
What would you like to do?
Script for setting up Debian Jessie VM with my development environment
#!/bin/bash -e
echo '
export CDPATH=.:$HOME/src/$HOME/go/src:$HOME/src/$HOME/src/$HOME/src/
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
sudo apt-get install -y --no-install-recommends mosh build-essential mercurial vim screen git
curl | tar xz
mv go go1.4
git clone
(cd go/src && ./make.bash)
GOPATH=$HOME ~/go/bin/go get
mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim
git clone ~/.vim/bundle/vim-go
echo '
execute pathogen#infect()
let g:go_fmt_command = "goimports"
set autoindent
filetype plugin indent on
set dir=/tmp
set backupdir=/tmp
' > ~/.vimrc
echo '
change = codereview change
gofmt = codereview gofmt
mail = codereview mail
pending = codereview pending
rebase-work = codereview rebase-work
submit = codereview submit
sync = codereview sync
email =
name = Andrew Gerrand
' > ~/.gitconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment