Home Download Buy Blog Forum Support

How to Run Terminal in Sublime Text Editor Window

How to Run Terminal in Sublime Text Editor Window

Postby sxross01 on Fri Dec 14, 2012 8:05 pm

I'd really love to have an OSX bash session running in one of my windows. I'm developing a RubyMotion app and it would be great not to have to cmd+tab over to iTerm, run my tests, memorize what went wrong, then try to puzzle that against the code. I know by arranging my windows cleverly I can see both iTerm and Sublime, but it's not always convenient just to have Sublime and iTerm in my working set, so z-order might put Mail or iCal or something else in between. By having the bash session in a window, I can "pin" it to the window I'm using to write code and make my test results relevant to the code.

I've looked at Terminal and MacTerminal and they appear to open a new instance of Terminal in a separate window. Is there anything that starts a bash session and pipes stdio through a window in Sublime?

Thanks.
sxross01
 
Posts: 3
Joined: Thu Dec 06, 2012 8:49 pm

Re: How to Run Terminal in Sublime Text Editor Window

Postby iamntz on Fri Dec 14, 2012 8:21 pm

This may help you out: viewtopic.php?f=5&t=2964&hilit=repl ?
iamntz
 
Posts: 918
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: How to Run Terminal in Sublime Text Editor Window

Postby sxross01 on Fri Dec 14, 2012 8:44 pm

Thanks for the pointer. Unfortunately, this appears only to implement a Python REPL, which I possibly could hack to run a Ruby REPL but what I really want is a full-fledged bash session.
sxross01
 
Posts: 3
Joined: Thu Dec 06, 2012 8:49 pm

Re: How to Run Terminal in Sublime Text Editor Window

Postby vitaLee on Fri Dec 14, 2012 9:11 pm

Maybe you glanced over the first post in the thread reffered?
Im glad to inform you SublimeREPL supports much more than Python REPL.
From the author:
SublimeREPL - run an interpreter inside ST2 (Clojure, CoffeeScript, F#, Groovy, Haskell, Lua, MozRepl, NodeJS, Python, R, Ruby, Scala, shell or configure one yourself)

Download it from Package Control and be amazed.
More info here https://github.com/wuub/SublimeREPL
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: How to Run Terminal in Sublime Text Editor Window

Postby lawlist on Fri Mar 08, 2013 4:31 pm

Another option would be to add Shell Turtlestein through package control -- once the package is added, the $PATH can be adjusted to whatever suits the user's needs -- i.e., Shell Turtlestein.sublime-settings file:

Code: Select all
{
   // Override these in your own
   // `Packages/User/Shell Turtlestein.sublime-settings` file.
   "surround_cmd": ["", ""],
   "exec_args": {"path": "/usr/texbin:/usr/local/bin:$PATH"},
   "cmd_settings": [],
   "input_widget": {
      // overridden for silly non-unixy OSes
      "syntax": "Packages/ShellScript/Shell-Unix-Generic.tmLanguage"
   }
}
lawlist
 
Posts: 54
Joined: Thu Feb 21, 2013 6:47 pm


Return to Technical Support

Who is online

Users browsing this forum: jbjornson and 13 guests