Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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)"

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

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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