<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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><img id="f9e4cea8-75d9-46f4-a282-15f30a9b4dde" height="376" width="843" apple-width="yes" apple-height="yes" src="cid:BF1757F2-AA8A-46D5-829C-DE451E4ABEC3"></div><div><br></div><br><div><div>ÔÚ 2012-2-26£¬ÉÏÎç9:59£¬ Allan Odgaard Ð´µÀ£º</div><br class="Apple-interchange-newline"><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">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 href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>http://lists.macromates.com/listinfo/textmate</div></blockquote></div><br></body></html>