Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save insanehunter/4524129 to your computer and use it in GitHub Desktop.
Save insanehunter/4524129 to your computer and use it in GitHub Desktop.
A Sublime Text 2 build script to launch ruby script in new OSX Terminal window.
{
"cmd": ["osascript", "-e", "tell app \"Terminal\"\nactivate\ndo script \"clear; ruby $file; tput setaf 7; echo '\n\n\n\nPress any key to close.'; tput sgr0; read -n 1 -s; exit\"\nend tell"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment