diff options
author | Christopher Sexton <csexton@gmail.com> | 2011-05-17 14:13:07 -0400 |
---|---|---|
committer | Christopher Sexton <csexton@gmail.com> | 2011-07-18 09:54:59 -0400 |
commit | a38774c98d1c08f82b1325a40b2de1a76586e02a (patch) | |
tree | e7ffb7a3e954392505db15b171c7eab707bb0e0d | |
parent | ed990f61ff66a5c409ef2d8a444820cecf098188 (diff) | |
download | zsh-a38774c98d1c08f82b1325a40b2de1a76586e02a.tar.gz zsh-a38774c98d1c08f82b1325a40b2de1a76586e02a.tar.bz2 zsh-a38774c98d1c08f82b1325a40b2de1a76586e02a.zip |
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
-rw-r--r-- | lib/edit-command-line.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/edit-command-line.zsh b/lib/edit-command-line.zsh new file mode 100644 index 000000000..db2000325 --- /dev/null +++ b/lib/edit-command-line.zsh @@ -0,0 +1,3 @@ +autoload -U edit-command-line +zle -N edit-command-line +bindkey '\C-x\C-e' edit-command-line |