我們經常用rvm來管理多個版本的ruby/gems. 當我們從多個版本間切換的時候, TextMate並不知道這事兒, 怎麼辦呢? 看如下修改:
1. textmate 的 Shell Variables 添加 TM_RUBY,值爲 /Users/[username]/.rvm/bin/rvm-auto-ruby。
2. 註釋掉 /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb 的 169 行。
( 我的TextMate是Version 1.5.10 (1623), 對應169行爲:
#io[0][0].fcntl(6, ENV['TM_PID'].to_i) if ENV.has_key?('TM_PID') && File.exists?(TM_INTERACTIVE_INPUT_DYLIB))