summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2017-03-02 14:30:23 +0100
committerDaniel Schadt <kingdread@gmx.de>2017-03-02 14:30:23 +0100
commitff251f082b2198d852ea63abc9b405b908308e0b (patch)
treed63c55777b09c68b4419cfeaaf4bf7f846fd36e8 /zsh
parentc183f261bbc9587ae9f864699173479bf0e868ad (diff)
downloaddotfiles-ff251f082b2198d852ea63abc9b405b908308e0b.tar.gz
dotfiles-ff251f082b2198d852ea63abc9b405b908308e0b.tar.bz2
dotfiles-ff251f082b2198d852ea63abc9b405b908308e0b.zip
zsh: enable line-editing
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