-
-
Save AndrewRadev/1096846 to your computer and use it in GitHub Desktop.
Handy shell script for keeping my bundles in vim up-to date
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
cd $HOME/.vim/bundle/ | |
for plugin in *; do | |
cd $plugin | |
echo ":: Updating $plugin ..." | |
if [ -d .git ]; then | |
git checkout master | |
git pull origin master | |
else | |
echo ":: $plugin is not managed as a submodule" | |
fi | |
echo | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment