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.
|
||||
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 '13 at 7:41