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 doesn't seem to be documented in the man
pages. Is it documented, and if so where?
edit-and-execute-command
in the man page. – n. m. could be an AI Aug 03 '13 at 07:41