Skip to content

Instantly share code, notes, and snippets.

@maker-leo
Forked from leoallen85/Ruby.sublime-build
Created March 11, 2013 16:53
Show Gist options
  • Save maker-leo/5135646 to your computer and use it in GitHub Desktop.
Save maker-leo/5135646 to your computer and use it in GitHub Desktop.
Go to Sublime Text 2 > Preferences > Browse Packages... to open finder, then open the Ruby.sublime-build file in the Ruby folder and replace the contents with this to get the Build command (cmd + B) working with RVM
{
"env":{
"PATH":"${HOME}/.rvm/bin:${PATH}"
},
"cmd": ["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