2013-03-16 21:16:00 -07:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
if [ ! `command -v "brew"` ]; then
|
|
|
|
echo "Homebrew is required!"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2013-03-16 21:28:28 -07:00
|
|
|
if [ ! `command -v "mvim"` ]; then
|
|
|
|
echo "\n* Installing macvim"
|
|
|
|
brew install macvim --with-cscope --override-system-vim
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d ~/.vimrc ]; then
|
|
|
|
echo "\n* Installing vim rcfiles"
|
|
|
|
|
|
|
|
if [ -d ~/.vim ]; then
|
|
|
|
rm -rf ~/.vim
|
|
|
|
fi
|
|
|
|
sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L)
|
|
|
|
fi
|
2013-03-16 21:16:00 -07:00
|
|
|
|
2013-03-16 21:28:28 -07:00
|
|
|
echo "\n* Updating vim..."
|
|
|
|
vim +BundleInstall! +BundleClean! +q +q
|
2013-03-16 21:16:00 -07:00
|
|
|
|
|
|
|
echo "\nDone!"
|