3 ms·
Strictly it will open your command in $EDITOR, but if you've "set -o vi" that's probably vi/vim/neovim. Outside vi mode, C-x C-e does the same thing. It's "ed
by dllthomas 10y ago
Strictly it will open your command in $EDITOR, but if you've "set -o vi" that's probably vi/vim/neovim.
Outside vi mode, C-x C-e does the same thing.
It's "edit-and-execute-command" in readline. Incidentally, this really does what it says on the tin: if you use "read -e" to enable readline support at a prompt, and you try to edit what you're inputting this way, it won't pass the result into the read - it will try to execute it.