From 87917109f874ba5258d521c8e12684e9b1654907 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 21 Mar 2013 12:33:12 -0400 Subject: [PATCH] Cleanup code --- install/brew | 1 - install/vim | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/install/brew b/install/brew index 50b55764..72df4657 100755 --- a/install/brew +++ b/install/brew @@ -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-imagick php54-mcrypt php54-xdebug readline } | indent - else echoh "==> Homebrew: Updating" { diff --git a/install/vim b/install/vim index b15c62b8..6e1e792c 100755 --- a/install/vim +++ b/install/vim @@ -1,7 +1,5 @@ #!/bin/zsh -source $(cd "$(dirname "$0")/.."; pwd)/zshrc - if ! command-exists "brew"; then echo "Homebrew is required!" exit @@ -17,6 +15,9 @@ if [ ! -e ~/.vimrc ]; then if [ -d ~/.vim ]; then rm -rf ~/.vim + rm ~/.vimrc + rm ~/.vimrc.bundles + rm ~/.gvimrc fi sh <(curl https://raw.github.com/hlissner/mlvim/master/install.sh -L) | indent fi @@ -28,7 +29,8 @@ echoh "==> Vim: Updating..." | while read line; do cd $line && echo -n "$(basename $line): " && git pull; done } | 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" { brew install cmake