<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks, it works. <div><br></div><div><br><div><div>在 2012-2-29,下午12:10, Chris Wong 写道:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Get rid of the #! at the beginning of your buffer.  It's pointing to the system ruby.</div><div><br></div><div>Chris</div><div><br><div class="gmail_quote">2012/2/28 姜 源 <span dir="ltr"><<a href="mailto:sleetdrop@gmail.com">sleetdrop@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thanks for your help, this doesn't works for me either.<div>I've already can see the TM_RUBY value changed, but when I run Command + R</div>
<div>It still runs the script with the system's default ruby</div><div><br></div><div><br></div><div><br><div><div><div>在 2012-2-29,上午12:43, Chris Wong 写道:</div><div><div class="h5"><br><blockquote type="cite"><div>I have the following in my ~/.tm_properties file.</div>
<div><br></div><div>TM_RUBY = "$HOME/.rbenv/shims/ruby"</div><div>PATH = "$PATH:/usr/local/bin"</div><div><br></div>Note the PATH setting.  If you have rbenv installed via Home Brew, you'd need to add /usr/local/bin to PATH.<div>

<br></div><div>Chris</div><div><br><div class="gmail_quote">2012/2/27 姜 源 <span dir="ltr"><<a href="mailto:sleetdrop@gmail.com" target="_blank">sleetdrop@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div>I changed it as you described, but it doesn't work for me</div><div><br></div><div><div> TM_RUBY = /Users/jiangyuan/.rbenv/shims/rbenv-auto-ruby</div><div> RBENV_VERSION = 1.9.3-p125</div>

</div><div><br></div><br><div><div>在 2012-2-28,上午8:45, Chris Wong 写道:</div><br><blockquote type="cite"><div>You need space around TM_RUBY<br><br>On Monday, February 27, 2012, 姜 源  wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><div>
Thanks for your reply, here is my configuration of .tm_properties</div><div><br></div><div><div>TM_RUBY=/Users/jiangyuan/.rbenv/shims/rbenv-auto-ruby</div><div>RBENV_VERSION=1.9.3-p125</div></div><div><br></div><div>When I run the demo script via Command + R, Textmate2 just uses system default ruby 1.8.7, while when I run the script in Terminal, it can use  rbenv's ruby 1.9.3</div>


<div><br></div></div><div><span><h.rb.jpg></span></div><div><div><br></div><br><div><div>在 2012-2-26,上午9:59, Allan Odgaard 写道:</div><br><blockquote type="cite"><div>On 21/02/2012, at 10.51,  姜 源 wrote:<br>

<br><blockquote type="cite">I find this url to use rbenv in textmate, <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://uberfork.com/post/12280974742/integrate-rbenv-with-textmate" target="_blank">http://uberfork.com/post/12280974742/integrate-rbenv-with-textmate</a><br>


</blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">but it doesn't work for textmate2<br></blockquote><br>I don’t see anything there which wouldn’t also apply to TextMAte 2.<br><br>While I would suggest putting the variables in .tm_properties (which also allow easy project-specific ruby version), using the global variables should also work.<br>


<br><blockquote type="cite">Anyone knows how to config rbenv to with with textmate2 ?<br></blockquote><br>Perhaps you can give some details on which problem you ran into (and how you set it up)?<br><br><br>_______________________________________________<br>


textmate mailing list<br><a>textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></div>
</blockquote></div><br></div></div></blockquote><div><br><br>-- <br><div>Chris</div><br>
<br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></div>

</blockquote></div><br></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Chris</div><br>
</div>
<br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a></blockquote>
</div></div></div><br></div></div></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Chris</div><br>
</div>
<br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>http://lists.macromates.com/listinfo/textmate</blockquote></div><br></div></body></html>