Skip to content

Instantly share code, notes, and snippets.

@Hengjie
Created December 6, 2012 21:36
Show Gist options
  • Save Hengjie/4228705 to your computer and use it in GitHub Desktop.
Save Hengjie/4228705 to your computer and use it in GitHub Desktop.
Sublime Text 2 with RVM
// Sublime Text 2 (on Mac OSX) with RVM
// This file: /Users/YOUR_USERNAME/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
// Thanks to: http://rubenlaguna.com/wp/2012/02/01/sublime-text-2-rvm-rspec/index.html#comment-605225107
{
"env": {
"PATH": "${HOME}/.rvm/bin:${PATH}"
},
"cmd": ["rvm-auto-ruby", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby",
"working_dir": "${file_path}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment