Skip to content

Commit

Permalink
Support HomeBrew on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
androidyue committed Feb 7, 2014
1 parent 5562d48 commit ff79678
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@
echo "安装将花费一定时间,请耐心等待直到安装完成^_^"
if which apt-get >/dev/null; then
sudo apt-get install -y vim vim-gnome ctags xclip astyle python-setuptools python-dev git
else
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 twisted
sudo ln -s /usr/bin/ctags /usr/local/bin/ctags
mv ~/vim ~/vim_old -f
mv -f ~/vim ~/vim_old
cd ~/ && git clone https://github.com/ma6174/vim.git
mv ~/.vim ~/.vim_old -f
mv ~/vim ~/.vim -f
mv ~/.vim/.vimrc ~/ -f
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
mv -f ~/.vim ~/.vim_old
mv -f ~/vim ~/.vim
mv -f ~/.vim/.vimrc ~/
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
echo "ma6174正在努力为您安装bundle程序" > ma6174
echo "安装完毕将自动退出" >> ma6174
echo "请耐心等待" >> ma6174
Expand Down

0 comments on commit ff79678

Please sign in to comment.