Skip to content

Instantly share code, notes, and snippets.

@leemour
Forked from pmarreck/Ruby.sublime-build
Last active December 19, 2015 15:29
Show Gist options
  • Save leemour/5976236 to your computer and use it in GitHub Desktop.
Save leemour/5976236 to your computer and use it in GitHub Desktop.
Sublime use rvm
# Get Sublime to use your rvm ruby... Change your Packages/Ruby/Ruby.sublime-build to this,
# or drop it in Packages/User:
{
"env":{
"PATH":"/home/leemour/.rvm/bin:${PATH}"
},
"cmd": [
"/home/leemour/.rvm/bin/rvm-auto-ruby", "$file"
],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.ruby"
}
# Use with bundle exec
{
"cmd": [
"bundle", "exec", "$HOME/.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