Is there a package that allows directly running a shell command?


#1

Basically exactly like in emacs

http://www.gnu.org/software/emacs/manual/html_node/emacs/Shell.html

M-! cmd RET
Run the shell command cmd and display the output (shell-command).

Where if you typed that keybinding and then ran something like

ls

It would do it for you and show you the output.


#2

Sounds like you’re looking for shell-it?


#3

That’s actually amazing and I’ll be getting it haha, but it’s not quite what I was looking for. This package is more like this http://stackoverflow.com/questions/206806/filtering-text-through-a-shell-command-in-emacs.

I just want to be able to run any shell command, and see the output. For example: ls or make or something like that.


#4

Maybe you want to submit a pull request to add the feature to shell-it? It seems a shame to install two packages to do almost exactly the same thing :grinning:


#5

I do that by using shell-it in a new empty tab. What’s nice is that you can then edit it and save it if you wish. Sometimes for small output I just do it in the middle of the source I’m working on and then undo it.