Use default ruby ​​version in Sublime Text 2

My standard and current version of ruby ​​is 1.9.3. This is actually the only version that appears when I start rvm list, so I don’t see how I can confuse this part. I did it which I found here, but it seemed to break everything. I keep getting “No such file or directory” for all the fixes that I see, even in the comments. I'm on a Mac, please let me know what other information I need to post here to help you figure out how I'm breaking things.

+4
source share
1 answer

You can always edit which one is rubyused by editing the build command settings:

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

Change the default value to "ruby"any path you need. The version you are using at any given time can be detected with:

which ruby

Alternatively, you can simply refer to the default value, which is often found in /opt/local/rvm/bin/ruby.

+7
source

All Articles