What is the best way to configure Textmate 2 to use rbenv ?
I read the Textmate mailing stream about setting up rbenv , but have not yet found the right solution.
Update your ~/.tm_properties to include:
~/.tm_properties
TM_RUBY = "$ HOME / .rbenv / shims / ruby" PATH = "$ HOME / .rbenv / bin: $ PATH"
Thanks to uberfork for this useful article: Integrate rbenv with Textmate .
The answers provided here did not help me. That's what:
PATH
$HOME/.rbenv/bin:$HOME/.rbenv/shims:
TM_RUBY
$HOME/.rbenv/shims/ruby
RBENV_VERSION
2.1.0-preview1
For me, the /usr/local/var/rbenv/shims to the TextMate PATH .
/usr/local/var/rbenv/shims
PATH The TextMate variable looks like /usr/local/var/rbenv/shims:$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin .
/usr/local/var/rbenv/shims:$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin
Just to complement all the answers above - if you want to use a different version of ruby ββfor each project, just create a new .tm_properites file inside the project root with the correct RBENV_VERSION variable.
.tm_properites