Skip to content

Instantly share code, notes, and snippets.

@aih
Forked from janlay/update-repos.sh
Last active November 17, 2019 06:24
Show Gist options
  • Save aih/e07df4c56b7bd0bb8bbc0a306f2811a2 to your computer and use it in GitHub Desktop.
Save aih/e07df4c56b7bd0bb8bbc0a306f2811a2 to your computer and use it in GitHub Desktop.
Update all Vim bundles for Pathogen
#/bin/sh
cd ~/.vim/bundle
for i in `\ls -p -d */`; do
cd "$i"
echo "Updating $i..."
git pull --recurse-submodules | grep -v 'Already up-to-date' | sed 's/^/ /'
[ -f .git/.gitmodules ] && git submodule update | sed 's/^/ /'
cd ..
done
@aih
Copy link
Author

aih commented Jan 5, 2017

This looks only at directories (e.g. not .vim files)

@guilpejon
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment