diff --git a/bootstrap.sh b/bootstrap.sh index b9322e0..914b5a2 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -34,6 +34,13 @@ set -e # Configure .vimrc link "$HOME" ".vimrc" "vimrc" +# Download pathogen if it doesn't exist already +VIM_AUTOLOAD=$HOME/.vim/autoload +mkdir -p $VIM_AUTOLOAD +if [ ! -f "$VIM_AUTOLOAD/pathogen.vim" ]; then + curl -LSso $VIM_AUTOLOAD/pathogen.vim https://tpo.pe/pathogen.vim +fi + # Configure Pathogen Plugins VIM_BUNDLE=$HOME/.vim/bundle mkdir -p $VIM_BUNDLE diff --git a/install_tools_arch.sh b/install_tools_arch.sh index d19de20..7057863 100644 --- a/install_tools_arch.sh +++ b/install_tools_arch.sh @@ -19,11 +19,6 @@ curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools chmod +x install.sh $env sh install.sh -# Install pathogen for vim -cd $HOME -mkdir -p $HOME/.vim/autoload $HOME/.vim/bundle -curl -LSso $HOME/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim - # Install Other Essential Tools