Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created July 3, 2009 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bkeepers/140101 to your computer and use it in GitHub Desktop.
Save bkeepers/140101 to your computer and use it in GitHub Desktop.
Command to keep cloned TextMate bundles up to date
#!/usr/bin/env ruby
home = File.expand_path('~')
Dir["#{home}/Library/Application Support/TextMate{,/Pristine Copy}/Bundles/*/.git"].each do |bundle|
dir = bundle.gsub(/\.git/, '')
puts "Updating #{File.basename(dir)}"
Dir.chdir(dir) { `git pull` }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment