Skip to content

Setting plugin to work with rbenv on OS X and Linux

Marvin Frederickson edited this page Mar 1, 2016 · 2 revisions

First of all you need to determine rbenv executable path. You can determine the path via

which rbenv

Then navigate to Sublime Text -> Preferences -> Package Settings -> RuboCop -> Settings – User And add the folowing:

{
	"check_for_rvm": false,
	"check_for_rbenv": true,
	"rbenv_path": "/path/to/rbenv"
}

Have fun!

For a system-wide rvm installation, I needed to specify this in mine, after I ran which rvm-auto-ruby

{
  "rvm_auto_ruby_path": "/usr/local/rvm/bin/rvm-auto-ruby"
}