Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AndrewRadev/1096846 to your computer and use it in GitHub Desktop.
Save AndrewRadev/1096846 to your computer and use it in GitHub Desktop.
Handy shell script for keeping my bundles in vim up-to date
cd $HOME/.vim/bundle/
for plugin in *; do
cd $plugin
echo ":: Updating $plugin ..."
if [ -d .git ]; then
git checkout master
git pull origin master
else
echo ":: $plugin is not managed as a submodule"
fi
echo
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment