Skip to content

Commit

Permalink
fixing some of the bootstrap issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Sep 27, 2012
1 parent 2a0cd04 commit 8b2c08c
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,28 @@ echo "backing up current vim config\n"
today=`date +%Y%m%d`
for i in $HOME/.vim $HOME/.vimrc $HOME/.gvimrc; do [ -e $i ] && [ ! -L $file ] && mv $i $i.$today; done

mkdir -p $endpath/.vim/bundle
lnif $endpath/.vimrc $HOME/.vimrc
lnif $endpath/.vimrc.bundles $HOME/.vimrc.bundles
lnif $endpath/.vim $HOME/.vim

if [ ! -d $endpath ]; then
if [ ! -e $endpath/.git ]; then
echo "cloning spf13-vim\n"
git clone --recursive -b 3.0 http://github.com/spf13/spf13-vim.git $endpath
echo "Installing Vundle"
git clone http://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
else
echo "updating spf13-vim\n"
cd $endpath && git pull
fi

echo "installing plugins using Vundle"

echo "setting up symlinks"
lnif $endpath/.vimrc $HOME/.vimrc
lnif $endpath/.vimrc.bundles $HOME/.vimrc.bundles
lnif $endpath/.vim $HOME/.vim
if [ ! -d $endpath/.vim/bundle ]; then
mkdir -p $endpath/.vim/bundle
fi

if [ ! -e $HOME/.vim/bundle/vundle ]; then
echo "Installing Vundle"
git clone http://github.com/gmarik/vundle.git $HOME/.vim/bundle/vundle
fi

echo "update/install plugins using Vundle"
vim -u $endpath/.vimrc.bundles - +BundleInstall! +BundleClean +qall

0 comments on commit 8b2c08c

Please sign in to comment.