From ff251f082b2198d852ea63abc9b405b908308e0b Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 2 Mar 2017 14:30:23 +0100 Subject: zsh: enable line-editing --- zsh/.zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'zsh') 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 -- cgit v1.2.3