From 357d9164ed81684ad01b5f5175b51659b7eee418 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Fri, 25 Oct 2019 11:09:29 +0200 Subject: [PATCH] Adjust zsh keybindings Signed-off-by: Severin Kaderli --- system/.config/zsh/.zshrc | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/system/.config/zsh/.zshrc b/system/.config/zsh/.zshrc index a183e15..598180c 100644 --- a/system/.config/zsh/.zshrc +++ b/system/.config/zsh/.zshrc @@ -16,20 +16,13 @@ setopt prompt_subst unsetopt correct + # Zsh keybindings -bindkey "\e[H" beginning-of-line -bindkey "\e[F" end-of-line -bindkey "\e[5~" beginning-of-history -bindkey "\e[6~" end-of-history -bindkey "\e[3~" delete-char -bindkey "\e[2~" quoted-insert -bindkey "\e[5C" forward-word -bindkey "\eOc" emacs-forward-word -bindkey "\e[5D" backward-word -bindkey "\eOd" emacs-backward-word -bindkey "\ee[C" forward-word -bindkey "\ee[D" backward-word -bindkey "^H" backward-delete-word + +# Ctrl + Left +bindkey "^[[1;5C" forward-word +# Ctrl + Right +bindkey "^[[1;5D" backward-word # Enable autocompletion features autoload -Uz compinit