Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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