Skip to content

Instantly share code, notes, and snippets.

@mattpolito
Created March 2, 2011 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpolito/850980 to your computer and use it in GitHub Desktop.
Save mattpolito/850980 to your computer and use it in GitHub Desktop.
updates your vim bundles when using git
#!/usr/bin/ruby
require 'fileutils'
DROPBOX_DIR = File.expand_path("~/Dropbox/config_files")
VIM_BUNDLES_DIR = DROPBOX_DIR + "/.vim/bundle"
files = Dir["#{VIM_BUNDLES_DIR}/*"]
files.each do |file|
unless !File.directory?("#{file}/.git")
FileUtils.cd(file)
system("git pull origin master")
FileUtils.cd("..")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment