Cleanup code

This commit is contained in:
Henrik Lissner 2013-03-21 12:33:12 -04:00
parent bf2ef1b4e5
commit 87917109f8
2 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,6 @@ if ! command-exists brew ; then
brew install php54 --with-fpm --with-imap --with-mysql --with-pgsql --without-apache brew install php54 --with-fpm --with-imap --with-mysql --with-pgsql --without-apache
brew install php54-imagick php54-mcrypt php54-xdebug readline brew install php54-imagick php54-mcrypt php54-xdebug readline
} | indent } | indent
else else
echoh "==> Homebrew: Updating" echoh "==> Homebrew: Updating"
{ {

View file

@ -1,7 +1,5 @@
#!/bin/zsh #!/bin/zsh
source $(cd "$(dirname "$0")/.."; pwd)/zshrc
if ! command-exists "brew"; then if ! command-exists "brew"; then
echo "Homebrew is required!" echo "Homebrew is required!"
exit exit
@ -17,6 +15,9 @@ if [ ! -e ~/.vimrc ]; then
if [ -d ~/.vim ]; then if [ -d ~/.vim ]; then
rm -rf ~/.vim rm -rf ~/.vim
rm ~/.vimrc
rm ~/.vimrc.bundles
rm ~/.gvimrc
fi fi
sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L) | indent sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L) | indent
fi fi
@ -28,7 +29,8 @@ echoh "==> Vim: Updating..."
| while read line; do cd $line && echo -n "$(basename $line): " && git pull; done | while read line; do cd $line && echo -n "$(basename $line): " && git pull; done
} | indent } | indent
if [ -d ~/.vim/bundle/YouCompleteMe ] && [ ! -e ~/.vim/bundle/YouCompleteMe/python/ycm_core.so ]; then YVM_DIR="~/.vim/bundle/YouCompleteMe"
if [ -d $YVM_DIR ] && [ ! -e $YVM_DIR/python/ycm_core.so ]; then
echoh "==> Vim: Trying to compile YCM" echoh "==> Vim: Trying to compile YCM"
{ {
brew install cmake brew install cmake