1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-17 19:30:10 +00:00
ohmyzsh/lib/edit-command-line.zsh
Christopher Sexton a38774c98d 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
2011-07-18 09:54:59 -04:00

3 lines
92 B
Bash

autoload -U edit-command-line
zle -N edit-command-line
bindkey '\C-x\C-e' edit-command-line