Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Anybody know of a package for Sublime Text 2 that will let me execute a shell command, save shell commands, run the currently-open file?

I miss the utility of NppExec from Notepad++, in which I would save something like:

irb -r "$(FULL_CURRENT_PATH)" F6, Enter, and I'd be rolling. With Sublime Text 2, I've got to get out a shell, navigate to the right directory, then enter the command.

share|improve this question

You can use the build system to define whatever commands you want to be executed. Checkout the official documentation for more information on how to perform what you want.

share|improve this answer
When I give it the "cmd": ["irb"], it tells me [Error 2] The system cannot find the file specified. I've read the documentation, but I see no help. I suppose it's not possible to get an interactive environment this way? – JellicleCat Jun 5 '12 at 21:58
That error means the same as if you typed "c:\SgtPooki\something\thisDOESNTexist\file.cs". Basically your command syntax is probably correct but you have the wrong file/filepath. – SgtPooki Dec 16 '12 at 22:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .