Skip to content

Instantly share code, notes, and snippets.

@taywils
Last active July 20, 2018 03:28
Show Gist options
  • Save taywils/1cac0485b30ee260116a173e4b8129a3 to your computer and use it in GitHub Desktop.
Save taywils/1cac0485b30ee260116a173e4b8129a3 to your computer and use it in GitHub Desktop.
Shell script that updates all vim pathogen bundles
if echo $PWD | grep -e ".vim/bundle"; then
bdir=$PWD
for curdir in */; do
cd $curdir
echo "\n\n${curdir}\n\n"
git pull
cd $bdir
done
else
echo 'This script must be ran from within your .vim/bundle directory'
echo 'Change directories until you get there and run it again'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment