-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·34 lines (27 loc) · 1.03 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
echo "安装将花费一定时间,请耐心等待直到安装完成^_^"
if which apt-get >/dev/null; then
sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools python-dev git
elif which yum >/dev/null; then
sudo yum install -y gcc vim git ctags xclip astyle python-setuptools python-devel
fi
#Add HomeBrew support on Mac OS
if which brew >/dev/null;then
echo "You are using HomeBrew tool"
brew install vim ctags git astyle
fi
sudo easy_install -ZU autopep8
sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
mv -f ~/vim ~/vim_old
cd ~/ && git clone https://github.com/progpark/willvim.git
mv -f ~/.vim ~/.vim_old
mv -f ~/willvim ~/.vim
mv -f ~/.vimrc ~/.vimrc_old
ln -s ~/.vim/.vimrc ~/
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
echo "ProgPark正在努力为您安装bundle程序" > progparktemp
echo "安装完毕将自动退出" >> progparktemp
echo "请耐心等待" >> progparktemp
vim progparktemp -c "BundleInstall" -c "q" -c "q"
rm -rf progparktemp
echo "安装完成"