Hi I have quickly become quite heavily dependent on RVM's .rvmrc file ( http://rvm.beginrescueend.com/workflow/rvmrc/), which swaps out versions of Rubies and gems when you are in the containing dir or one of its subdirs.
However, TextMate gets its Ruby version from my ~/.profile where I have: rvm wrapper ruby-1.9.2-p0 textmate And then a TextMate shell variable: TM_RUBY=/Users/josh/.rvm/bin/textmate_ruby
This means that I have to manually change the wrapper for TextMate to be correct in my current project, and then I have to be very careful not to open another terminal tab, which feels like a pretty fragile workflow.
Is there a way to have Ruby's command+r and command+shift+e aware of which Ruby they should be using?
On 16 Nov 2010, at 09:30, Josh Cheek wrote:
This means that I have to manually change the wrapper for TextMate to be correct in my current project, and then I have to be very careful not to open another terminal tab, which feels like a pretty fragile workflow.
How about setting TM_RUBY to the exact ruby you want to use?
You can set variables for projects incase some of your projects use 1.8 and others 1.9: http://manual.macromates.com/en/environment_variables#project_dependent_vari...
On Nov 16, 2010, at 2:30 AM, Josh Cheek wrote:
However, TextMate gets its Ruby version from my ~/.profile where I have: rvm wrapper ruby-1.9.2-p0 textmate And then a TextMate shell variable: TM_RUBY=/Users/josh/.rvm/bin/textmate_ruby
You really have the wrapper command in your .profile? I believe it's just meant to be run once to generate the wrapper script:
http://rvm.beginrescueend.com/integration/textmate/
James Edward Gray II