My Dev Env
OS
MBP + OSX + VM Fushion + Ubuntu 12.04 LTS
Shell
Terminal + Zsh + Tmux
安装
Zsh
sudo apt-get -y install zsh
chsh -s /bin/zsh
exit and login again
sudo apt-get -y install curl
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
Tmux
sudo apt-get -y install tmux
cd ~; xgit clone git@bitbucket.org:stillzhl/tmux.conf.git tmux_conf
cp tmux_conf/.tmux.conf ~/
编辑器
Vim
vimrc 及 插件(from @dennis_yuan)
xgit clone git@bitbucket.org:stillzhl/confs.git
重新编译 vim
sudo apt-get install libncurses5-dev \
libgnome2-dev libgnomeui-dev libgtk2.0-dev \
libatk1.0-dev libbonoboui2-dev libcairo2-dev \
libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial
sudo apt-get remove vim vim-runtime gvim
sudo apt-get remove vim-tiny vim-common vim-gui-common
cd ~
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp \
--enable-perlinterp --enable-gui=gtk2 --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim73
sudo make install
安装 Vundle
编译 YCM
sudo apt-get -y install cmake
cd ~; mkdir ycm_build
cd ycm_build
cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/cpp
make ycm_core
Python 开发环境
搭建
sudo apt-get -y install python-virtualenv
virtualenv dev_env
source dev_env/bin/activate
pip install -r requirements.txt
requirements.txt
Scrapy==0.16.5
Twisted==13.1.0
argparse==1.2.1
distribute==0.6.24
ipython==0.13.2
lxml==3.2.1
pyOpenSSL==0.13
w3lib==1.3
wsgiref==0.1.2
zope.interface==4.0.5
Django==1.2.3
MySQL-python==1.2.4
PIL==1.1.7
pyrant==0.6.5
....
版本控制 + 代码同步
Git + BitBucket + ProxyChains 由于大部分是公司的代码且团队较小,所以选用闭源的bitbucket,免费版本足够满足需求
安装
sudo apt-get -y install git
sudo apt-get -y install proxychains
proxychains 设置
cd ~; mkdir .proxychains
cp /etc/proxychains.conf ~/.proxychains
ssh -N -D 10086 user@your_vps.com
vim ~/.proxychains/proxychains.conf 最后一行的配置端口为 10086
echo 'alias xgit="proxychains git"\n' >> ~/.zshrc
source ~/.zshrc
无阻碍畅行
xgit clone git@bitbucket.org:user/your_project.git