]> arthur.barton.de Git - ax-zsh.git/commitdiff
10_keyboard: Enable editing of the current command line in $EDITOR
authorAlexander Barton <alex@barton.de>
Sun, 19 Jul 2015 15:11:54 +0000 (17:11 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 19 Jul 2015 15:11:54 +0000 (17:11 +0200)
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