3 ms·
My favorite tip is to stay in emacs mode, but whenever you have something "complicated" to do, use Ctrl-X Ctrl-E : it opens the current line in $EDITOR.
by emillon 14y ago
My favorite tip is to stay in emacs mode, but whenever you have something "complicated" to do, use Ctrl-X Ctrl-E : it opens the current line in $EDITOR.
- Evbn 14y agoThis is amazing. One of my persistent nuisances had been when and how to transition from command line to script. This makes it smooth!
- mhitza 14y agoExcept all the line formatting gets lost in bash after executing the command; and it is automatically executed. In zsh you still have the opportunity to inspect it once more when you leave the editor, and it maintains it's multiline format in the history.