Permalink
Browse files

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
  • Loading branch information...
csexton committed May 17, 2011
1 parent ed990f6 commit a38774c98d1c08f82b1325a40b2de1a76586e02a
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit a38774c

Please sign in to comment.