Last active
July 20, 2018 03:28
-
-
Save taywils/1cac0485b30ee260116a173e4b8129a3 to your computer and use it in GitHub Desktop.
Shell script that updates all vim pathogen bundles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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