Configure Textmate 2 for rbenv

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.

+4
source share
4 answers

Update your ~/.tm_properties to include:

  TM_RUBY = "$ HOME / .rbenv / shims / ruby"
 PATH = "$ HOME / .rbenv / bin: $ PATH"

Thanks to uberfork for this useful article: Integrate rbenv with Textmate .

+7
source

The answers provided here did not help me. That's what:

  • Settings β†’ Variables
  • add this to the beginning of PATH : $HOME/.rbenv/bin:$HOME/.rbenv/shims:
  • set TM_RUBY : $HOME/.rbenv/shims/ruby
  • populate RBENV_VERSION your version. Example: 2.1.0-preview1
  • (and make sure the checkboxes for each of these variables are selected)
+4
source

For me, the /usr/local/var/rbenv/shims to the TextMate PATH .

PATH The TextMate variable looks like /usr/local/var/rbenv/shims:$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin .

+3
source

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.

0
source

All Articles