Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created May 30, 2012 15:22
Show Gist options
  • Save rboyd/2836977 to your computer and use it in GitHub Desktop.
Save rboyd/2836977 to your computer and use it in GitHub Desktop.
sublime text run spec through rvm
http://upstre.am/blog/2011/07/sublime-text-2-with-rvm-on-osx/
It's even easier as rvm already ships with a wrapper located in ~/.rvm/bin/rvm-auto-ruby. So you just need to edit the Ruby.sublime-build to this:
{ "cmd": ["~/.rvm/bin/rvm-auto-ruby", "$file"], "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": "source.ruby"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment