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:


...press 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.


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.

  • 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? 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.