4 ms·
Since you know how to do this in vi, do a Ctrl+x Ctrl+e to open the command in $EDITOR. Closing the editor will execute whatever was edited in it.
by devnonymous 10y ago
Since you know how to do this in vi, do a Ctrl+x Ctrl+e to open the command in $EDITOR. Closing the editor will execute whatever was edited in it.
- philsnow 10y agoThere's also a shell builtin `fc` (mnemonic: fix command) that does this.