Skip to content

Instantly share code, notes, and snippets.

@jqr
Forked from bkeepers/snippet.rb
Created July 3, 2009 14:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jqr/140164 to your computer and use it in GitHub Desktop.
Save jqr/140164 to your computer and use it in GitHub Desktop.
#!/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
`osascript -e 'tell app "TextMate" to reload bundles'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment