Loading repository data…
Loading repository data…
EugeneDae / repository
A simple TextMate bundle to run Python, Ruby, PHP, Bash scripts in Terminal.app without stealing focus from the TextMate window.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A simple TextMate 1.5 bundle to run Python, Ruby, PHP, Bash scripts in Terminal.app without stealing focus from the TextMate window. It can easily be modified to run %YOUR_FAVORITE_LANGUAGE%. If you added support for a new language, please make a pull request to update this repository or email your changes to the author.

Press Cmd + Shift + R to run your script. If any other bundles share this hotkey, TextMate will show a pop-up menu where you’d need to select Run in Terminal → Run Python/Ruby/PHP...:
If you don’t want this menu to appear, use Bundle Editor to edit out the hotkey from “conflicting” bundles or set a different hotkey for commands in this bundle.
The bundle uses AppleScript to create (if necessary) a Terminal.app window running a GNU Screen session named “TextMate”, which receives commands to run your script. Such a window is internally referenced as an “executor”. After running a script, “executor” displays execution time measured with Unix time command.
For Python projects, the bundle respects TM_PYTHON environment variable (if set). If you use virtualenv, set TM_PYTHON to the full path to Python binary inside your virtualenv directory. Note that TextMate does not understand ~/..., use /Users/username/... instead.
Only tested with TextMate 1.5.11 and Mac OS X 10.8 (“Mountain Lion”).
Written by Eugene / Dae (dae@dae.me).
Any feedback is appreciated. Feel free to use the code under the terms of the MIT License (see LICENSE).