Skip to content

Instantly share code, notes, and snippets.

@rainforest-of-code
Forked from janlay/update-repos.sh
Created May 9, 2018 06:30
Show Gist options
  • Save rainforest-of-code/ec82173a5d1122c9a979a37428d2623f to your computer and use it in GitHub Desktop.
Save rainforest-of-code/ec82173a5d1122c9a979a37428d2623f 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`; 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment