2 ms·
> Next time you are using your shell, try typing ctrl-x e [...]. The shell will take what you've written on the command line thus far and paste it into the edit
by vog 15y ago
> Next time you are using your shell, try typing ctrl-x e [...]. The shell will take what you've written on the command line thus far and paste it into the editor specified by $EDITOR.
I'm astonished this works in bash but not in zsh.
- read_wharf 15y agoAnd if you use set -o vi in .bashrc, or set editing-mode vi in .inputrc, then 'v' will do the same thing, e.g. $ blah blah[ESC]v puts you in vim with the command line thus far.
- moe 15y agoI have these in my .zshrc: autoload edit-command-line zle -N edit-command-line bindkey '^X^E' edit-command-line
- e40 15y agoctrl-x ctrl-e ... the e isn't naked as you suggested.