Skip to content

Instantly share code, notes, and snippets.

@leoallen85
Created March 11, 2013 16:47
Show Gist options
  • Save leoallen85/5135604 to your computer and use it in GitHub Desktop.
Save leoallen85/5135604 to your computer and use it in GitHub Desktop.
Allows you to run Ruby files from sublime. To fix this, enter in the terminal `subl ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Ruby.sublime-build` and put this code in your file
{
"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