How to edit a multiline command in the shell
Just press CTRL + x + e
in either bash
or zsh
.
The shell will open the default editor.
Once you finish typing the command, save the file and exit.
Just press CTRL + x + e
in either bash
or zsh
.
The shell will open the default editor.
Once you finish typing the command, save the file and exit.