I have recently discovered that if we press Ctrl+X Ctrl+E, bash opens the current command in an editor (set in $VISUAL
or $EDITOR
) and executes it when the editor is closed. But it doesen't seem to be documented in the man
pages.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
I have found it out now. I should have read it more carefully before asking this. The
| ||||
|
edit-and-execute-command
in the man page. – n.m. Aug 3 at 7:41