Skip to content

Instantly share code, notes, and snippets.

@felixrabe
Forked from pmarreck/Ruby.sublime-build
Created October 9, 2012 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felixrabe/3861576 to your computer and use it in GitHub Desktop.
Save felixrabe/3861576 to your computer and use it in GitHub Desktop.
Get Sublime Text 2 to use your RVM ruby and bundle Gemfile
# Get Sublime to use your rvm ruby... Change your ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build to this, replacing YOURUSERNAME:
{
"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