17 ms·
Little-known fact about Eshell: not only can you implement your prompt functions and highlighting in lisp, you can also (a) pipe output directly to buffers and
by technomancy 16y ago
Little-known fact about Eshell: not only can you implement your prompt functions and highlighting in lisp, you can also (a) pipe output directly to buffers and (b) invoke M-x commands from the shell:
a) $ ifconfig > #<buffer interfaces>
b) find-file README.txt # same as doing C-x C-f
- jfb 16y agoAwesome. There are many fact that remain little known in eshell, it seems.
- philjackson 16y agoAnd if e-shell isn't your thing, may I humbly suggest this: http://www.shellarchive.co.uk/content/emacs_tips.html#have-emacsclient-accept-stuff-from-stdin http://www.shellarchive.co.uk/content/emacs_tips.html#have-e... I alias that script to 'e' so I can do this: $ ifconfig | e $ e README.txt