Created
July 31, 2018 13:18
-
-
Save raven-rock/4fc8152f91eedf663755b65432f48ce5 to your computer and use it in GitHub Desktop.
Zsh: Use `C-x C-e` or `C-x e` to edit current command in $EDITOR with multi-line support. Saving and quitting $EDITOR returns to command prompt with the edited command inserted (but does not execute it until you press enter). Handy!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U edit-command-line | |
zle -N edit-command-line | |
bindkey '^xe' edit-command-line | |
bindkey '^x^e' edit-command-line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment