Skip to content

Instantly share code, notes, and snippets.

@bbugh
Last active August 29, 2015 13:57
Show Gist options
  • Save bbugh/9861289 to your computer and use it in GitHub Desktop.
Save bbugh/9861289 to your computer and use it in GitHub Desktop.
Using RVM in Sublime Text 2

Start with:

subl ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Ruby/Ruby.sublime-build

Copy and paste this, replacing the contents of that file with this:

{
  "env":{
      "PATH":"${HOME}/.rvm/bin:${PATH}"
  },
  "cmd": [ "rvm-auto-ruby", "$file" ],
  "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
  "selector": "source.ruby"
}

Now you can use Command+B to build your ruby files!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment