TextMateでRSpecを扱う設定 その2 パス設定の修正
TextMateでRSpecを扱う設定 - haru01のめもの続き
mate コマンドを実行するのに、わざわざ~/.MacOSX/environment.plistでPATHを通さなくても
変数:$TM_SUPPORT_PATHでアクセスできることがわかった.
%x{ "$TM_SUPPORT_PATH/bin/mate" "#{other}" }てな感じ.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>GL_ENABLE_DEBUG_ATTACH</key> <string>YES</string> <key>PATH</key> <string>/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin</string> </dict> </plist>
ログアウト、ログイン??
--- RSpec.tmbundle/Support/lib/spec/mate/switch_command.rb (revision 2161) +++ RSpec.tmbundle/Support/lib/spec/mate/switch_command.rb (working copy) @@ -6,7 +6,7 @@ def go_to_twin(project_directory, filepath) other = twin(filepath) if File.file?(other) - `mate #{other}` + %x{ "$TM_SUPPORT_PATH/bin/mate" "#{other}" } else relative = other[project_directory.length+1..-1] file_type = file_type(other)
せっかくなんで、patchを投げてみた.