From 8528ed9de092fa9d4c635f385bb45e9664226bcc Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Wed, 13 May 2015 15:16:39 -0500 Subject: [PATCH] Smarter bootstrap. --- bootstrap.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 2b156d3..5cba2e7 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,21 @@ -ln -s ~/dotfiles/zshrc ~/.zshrc -cd ~/dotfiles/antigen;git submodule update --init -ln -s ~/dotfiles/vimrc ~/.vimrc +if [ ! -d ~/dotfiles ] + cd ~; git clone git@github.com:edthedev/dotfiles.git +fi -git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim -vim +BundleInstall +qall +if [ ! -f ~/.zshrc ] + ln -s ~/dotfiles/zshrc ~/.zshrc +fi + +if [ ! -d ~/dotfiles/antigen ] + cd ~/dotfiles/antigen;git submodule update --init +fi + +if [ ! -f ~/.vimrc ] + ln -s ~/dotfiles/vimrc ~/.vimrc +fi + +if [ ! -d ~/.vim/bundle ] + git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim + vim +BundleInstall +qall +fi -- 2.47.3