summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 79eabab..5a9bf69 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -42,6 +42,16 @@ precmd()
unsetopt multibyte
+# Enable Ctrl-x-e to edit command line
+autoload -U edit-command-line
+# Emacs style
+zle -N edit-command-line
+bindkey '^xe' edit-command-line
+bindkey '^x^e' edit-command-line
+# Vi style:
+# zle -N edit-command-line
+bindkey -M vicmd v edit-command-line
+
# key bindings
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line