Skip to content

Instantly share code, notes, and snippets.

@tors
Created February 26, 2016 06:46
Show Gist options
  • Save tors/0fc31531c8a1f8b603ea to your computer and use it in GitHub Desktop.
Save tors/0fc31531c8a1f8b603ea to your computer and use it in GitHub Desktop.
#!/bin/sh
cd ~/.vim/bundle
for directory in `ls ~/.vim/bundle`
do
echo "Checking for $directory update..."
if [ -d "$directory/.git" ]
then
cd $directory
git pull
cd ..
else
echo "$directory not a git plugin. Skipping update."
fi
echo
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment