Skip to content

Instantly share code, notes, and snippets.

@wangqiang8511
Last active October 1, 2015 01:10
Show Gist options
  • Save wangqiang8511/d476201f88ae50bb40ad to your computer and use it in GitHub Desktop.
Save wangqiang8511/d476201f88ae50bb40ad to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Personal dev env setup script
setup_python () {
apt-get install -y python-dev python-pip
pip install virtualenv
}
# Setup vim
setup_vim () {
apt-get install -y vim
apt-get install -y ctags
curl -k https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
curl -k -L https://gist.githubusercontent.com/wangqiang8511/b37e80f490f352f15067/raw/b2aa29a8dbaa66a5edd672d83dd63554d62feb5d/.vimrc -o ~/.vimrc
}
# Setup git
setup_git () {
apt-get install -y git
pip install gitflow
}
# Setup screen
setup_screen () {
apt-get install -y screen
# Get screenrc
curl -k -L https://gist.githubusercontent.com/wangqiang8511/da97a2cfb8645f0138c4/raw/f661ed1fb01cc3b39fb0c8d4da2c9c3dfe124c75/.screenrczsh -o ~/.screenrc
}
# Setup zsh
setup_zsh () {
apt-get install -y zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
pip install powerline-status
curl -k -L https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf -o /usr/share/fonts/X11/misc/PowerlineSymbols.otf
curl -k -L https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf -o /etc/fonts/conf.d/10-powerline-symbols.conf
fc-cache -vf /usr/share/fonts/X11/misc
# Get zshrc
curl -k -L https://gist.githubusercontent.com/wangqiang8511/3a2d34439c2463a97453/raw/99841fd3b2d9cfbb1ce357c38fd33bdab8a0a33f/.zshrc -o ~/.zshrc
}
setup_utils() {
pip install ranger
}
setup_all () {
apt-get update
setup_python
setup_git
setup_vim
setup_zsh
setup_screen
setup_utils
}
setup_all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment