Created
May 25, 2019 11:17
-
-
Save rcebrian/b6b4d39d49ba90fb9656cfca166e41ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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