Created
April 13, 2017 18:31
-
-
Save ed-flanagan/7ea6766344b3a68480af96318e4b2c7a to your computer and use it in GitHub Desktop.
Git pull all Pathogen Vim bundles
This file contains 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 | |
BUNDLE_DIR="${HOME}/.vim/bundle" | |
if [ ! -d "${BUNDLE_DIR}" ]; then | |
echo >&2 "${BUNDLE_DIR} does not exist!" | |
exit 1 | |
fi | |
for bundle in ${BUNDLE_DIR}/*/; do | |
echo "Updating $(basename "${bundle}")..." | |
git -C "${bundle}" pull origin master | |
echo | |
done | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment