mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-21 21:30:09 +00:00
C-x C-e to edit current command in EDITOR
The command C-x C-e opens the current command line for editing in the editor defined by the $EDITOR environment variable. Thanks to Craig Bosma and his blog post about this: http://distrustsimplicity.net/articles/zsh-command-editing
This commit is contained in:
parent
ed990f61ff
commit
a38774c98d
1 changed files with 3 additions and 0 deletions
3
lib/edit-command-line.zsh
Normal file
3
lib/edit-command-line.zsh
Normal file
|
@ -0,0 +1,3 @@
|
|||
autoload -U edit-command-line
|
||||
zle -N edit-command-line
|
||||
bindkey '\C-x\C-e' edit-command-line
|
Loading…
Reference in a new issue