Skip to content

Instantly share code, notes, and snippets.

@qerub
Created May 8, 2011 23:30
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 qerub/961806 to your computer and use it in GitHub Desktop.
Save qerub/961806 to your computer and use it in GitHub Desktop.
Wrapper for TextMate's mate command that makes it easy to open a particular line
#!/usr/bin/env ruby
ARGV.each do |arg|
name, line = arg.split(":")
system("mate", name, "--line", line)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment