Skip to content

Instantly share code, notes, and snippets.

@ed-flanagan
Created April 13, 2017 18:31
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 ed-flanagan/7ea6766344b3a68480af96318e4b2c7a to your computer and use it in GitHub Desktop.
Save ed-flanagan/7ea6766344b3a68480af96318e4b2c7a to your computer and use it in GitHub Desktop.
Git pull all Pathogen Vim bundles
#!/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