[TxMt] Re: TextMate 2 and rvm

Steve Riley shotgun.slade at gmail.com
Thu Jul 5 20:25:05 UTC 2012

Try this link. http://www.christopherirish.com/2010/06/28/how-to-setup-textmate-to-use-rvm/

On Jul 5, 2012, at 1:39 AM, John Yeates wrote:

> On Sunday June 03 2012, dipnlik <dipnlik at gmail.com> wrote:
>> For RVM's integration in textmate, please take a look at RVM's
>> documentation: https://rvm.io/integration/textmate/
>> While I'm not a TM2 user anymore, the rvm-auto-ruby's approach works
>> fine for me in TM1, but it only reads .rvmrc files at the project's
>> root (as opposed to navigating up in the directory tree looking for
>> other .rvmrc files)
> Thanks, but the problem here is when writing plain ruby (non-rails) scripts that have to start with #!/usr/bin/env ruby so that people can run them by typing "scriptname" rather than "ruby scriptname".
> In that case, TextMate runs with the system ruby rather than the rvm ruby. There's nothing on the page you linked to say what *should* be after the #! so it will:
>  a) work from TextMate on a system with rvm installed, and
>  b) *still work* when the script is run on a system *without* rvm installed.
> Does anybody know how I should set this up?
> Thanks
> -- 
> John Yeates
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

More information about the textmate mailing list