Skip to content

Instantly share code, notes, and snippets.

@rcebrian
Created May 25, 2019 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcebrian/b6b4d39d49ba90fb9656cfca166e41ba to your computer and use it in GitHub Desktop.
Save rcebrian/b6b4d39d49ba90fb9656cfca166e41ba to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# used to update pathogen vim plugin manager and vim plugins
for BASE_DIR in "${HOME}/.vim" "${HOME}/.config/nvim"; do
PATHOGEN_DIR="${BASE_DIR}/autoload"
BUNDLES_DIR="${BASE_DIR}/bundle"
if [[ -d "${PATHOGEN_DIR}" ]]; then
echo "Updating pathogen in ${PATHOGEN_DIR}..."
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
fi
if [[ -d "${BUNDLES_DIR}" ]]; then
echo "Updating bundles in ${BUNDLES_DIR}..."
for bundle in "${BUNDLES_DIR}/"*; do
if [[ -d "${bundle}/.git" ]]; then
echo "Bundle: ${bundle}..."
cd "${bundle}"
git pull
fi
done
fi
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment