Adjust zsh keybindings

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-10-25 11:09:29 +02:00
parent d896d83ba3
commit 357d9164ed
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -16,20 +16,13 @@
setopt prompt_subst setopt prompt_subst
unsetopt correct unsetopt correct
# Zsh keybindings # Zsh keybindings
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line # Ctrl + Left
bindkey "\e[5~" beginning-of-history bindkey "^[[1;5C" forward-word
bindkey "\e[6~" end-of-history # Ctrl + Right
bindkey "\e[3~" delete-char bindkey "^[[1;5D" backward-word
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
# Enable autocompletion features # Enable autocompletion features
autoload -Uz compinit autoload -Uz compinit