Skip to content

Commit

Permalink
• Move IO's Run command to TextMate::Executor.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/Io.tmbundle@9996 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Alex Ross committed Jun 21, 2008
1 parent a811f35 commit 0ffea55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
8 changes: 6 additions & 2 deletions Commands/Run Script.tmCommand
Expand Up @@ -5,8 +5,12 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>export TM_RUBY=$(type -p "${TM_RUBY:-ruby}")
"$TM_RUBY" -- "$TM_BUNDLE_SUPPORT/run_script.rb"</string>
<string>$(type -p "${TM_RUBY:-ruby}") -e'
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/executor"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
TextMate.save_current_document
TextMate::Executor.run(ENV["TM_IO"] || "io", ENV["TM_FILEPATH"], :version_args =&gt; ["2&gt;&amp;1", "&lt;&lt;&lt; \"System version; System exit;\""])'&lt;&amp;0</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
Expand Down
24 changes: 0 additions & 24 deletions Support/run_script.rb

This file was deleted.

0 comments on commit 0ffea55

Please sign in to comment.