beforeRunningCommand nop command #!/bin/bash THASKELL=${TM_HASKELL:-ghci} esc () { STR="$1" ruby18 <<"RUBY" str = ENV['STR'] str = str.gsub(/'/, "'\\\\''") str = str.gsub(/[\\"]/, '\\\\\\0') print "'#{str}'" RUBY } osascript <<- APPLESCRIPT tell app "Terminal" launch activate do script "clear; cd $(esc "${TM_DIRECTORY}"); ${THASKELL} $(esc "${TM_FILEPATH}")" set position of first window to {100, 100} end tell APPLESCRIPT input none inputFormat text keyEquivalent @R name Load in GHCi outputCaret afterOutput outputFormat text outputLocation toolTip scope source.haskell semanticClass process.external.run.haskell uuid 2242C46C-153E-4EEB-B80B-A5398559D759 version 2