Created
October 17, 2013 16:04
-
-
Save eka/7027609 to your computer and use it in GitHub Desktop.
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
dirs = Dir['./*'] | |
original_dir = __dir__ | |
dirs.each do |dir| | |
begin | |
Dir.chdir(dir) | |
rescue | |
puts "couldn't change to #{dir}" | |
end | |
`git pull` | |
Dir.chdir(original_dir) | |
end |
If you install them as submodules you can update them with:
git submodule foreach git pull origin master
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
place this on your bundle pathogen vim directory and run ruby update.rb