[TxMt] how does text mate find ruby...?

dc lister at pikkle.com
Sun Jan 28 08:04:07 UTC 2007


i had to remove the OS-X included broken version of Ruby, and now get
this error message when using certain commands like comment out block
in textmate :

env: ruby: No such file or directory

so i assume TM is piping the text thru a ruby script to do these operations.
so, how do i tell textmate where to look for Ruby?

all systems are go in the shell ::

dc at bb   > which ruby
/usr/local/bin/ruby

dc at bb   > ruby --version
ruby 1.8.5 (2006-08-25) [i686-darwin8.6.2]


for now i did a hack to symlink from the apple default location ( usr/bin )
to where i have ruby185 installed, but this doesnt seem optimal:

dc at bb /usr/bin  > sudo ln -s /usr/local/bin/ruby ruby

I do have a .bash_login
which textmate -should- source to create a shell environment before
any scripts are run?

>> Instead TextMate runs a custom script (named bash_init.sh located
in $TM_SUPPORT_PATH/lib) before executing the actual shell command(s).
This custom script contains the following code: <<


thanks for any tips.

/dc
-------------------------------------------
      David "DC" Collier
mailto:dc at pikkle.com
      +81 (0)80 6521 9559
      skype: callto://d3ntaku
-------------------------------------------
      Pikkle 株式会社
      http://www.pikkle.com
-------------------------------------------



More information about the textmate mailing list