Use default ruby version in Sublime Text 2

后端 未结 1 616
攒了一身酷
攒了一身酷 2020-12-19 14:53

My default and current version of ruby is 1.9.3. It\'s actually the only version that appears when I run rvm list so I don\'t see how I can be messing that part

相关标签:
1条回答
  • 2020-12-19 15:43

    You can always edit which ruby is used by editing your Build command preferences:

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

    Change the default "ruby" to whatever path you require. The version you're using at any given time can be discovered with:

    which ruby
    

    Alternatively you can just link to the default which is often located at /opt/local/rvm/bin/ruby.

    0 讨论(0)
提交回复
热议问题