Ho scoperto di recente che se si preme Ctrl+ X Ctrl+ E, bash apre il comando corrente in un editor (impostato in $VISUALo $EDITOR) e lo esegue alla chiusura dell'editor. Ma non sembra essere documentato nelle manpagine.
Ho scoperto di recente che se si preme Ctrl+ X Ctrl+ E, bash apre il comando corrente in un editor (impostato in $VISUALo $EDITOR) e lo esegue alla chiusura dell'editor. Ma non sembra essere documentato nelle manpagine.
Risposte:
L'ho scoperto ora. Avrei dovuto leggerlo più attentamente prima di chiedere questo.
La manpagina dice:
edit-and-execute-command (C-xC-e) Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $VISUAL, $EDITOR, and emacs as the editor, in that order.
edit-and-execute-commandnella pagina man.