Skip to content

Instantly share code, notes, and snippets.

@aberant
Forked from tundal45/update_vim_plugins
Last active August 29, 2015 14:15
Show Gist options
  • Save aberant/27f6e35c2d2e32ab0dc8 to your computer and use it in GitHub Desktop.
Save aberant/27f6e35c2d2e32ab0dc8 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Bash version ${BASH_VERSION}..."
cd ~/.vim/bundle
for plugin in ~/.vim/bundle/*
do
echo "Updating $plugin"
( cd $plugin; git pull --rebase origin master )
echo "DONE!"
done
cd -
@tundal45
Copy link

This is great! For sub-shelling, what would be the difference if it was ( cd $plugin && git pull --rebase origin master ). Does the ; version have different characteristics? Both seem to work the same way but I am not sure if there are subtle differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment