]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/10_keyboard/10_keyboard.zshrc
10_keyboard: Enable editing of the current command line in $EDITOR
[ax-zsh.git] / core / 10_keyboard / 10_keyboard.zshrc
index 4ac06f885078ead616a858dcc78123a3b1f2dd8b..3c52190b8e1e0a4753b225f0d93bce1db2a25100 100644 (file)
@@ -2,3 +2,8 @@
 # 10_keyboard.zshrc: Initialize keyboard settings
 
 bindkey -e
+
+# Allow editing of the current command line in $EDITOR
+autoload -U edit-command-line
+zle -N edit-command-line
+bindkey '\C-x\C-e' edit-command-line