[TxMt] Re: TextMate 2 and rvm

dipnlik dipnlik at gmail.com
Thu Jul 5 20:45:09 UTC 2012

Steve, the instructions on that link are basically outdated versions
of the official documentation.

John, I never found a better solution than to edit the shebang line,
adding a space between # and ! while I'm editing the script—or simply
remove the line.  But since this problem doesn't hit me a lot, I never
went too far looking for other solutions.

Hope that helps.

On Thu, Jul 5, 2012 at 5:25 PM, Steve Riley <shotgun.slade at gmail.com> wrote:
> 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
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

More information about the textmate mailing list