Adjust zsh keybindings
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
d896d83ba3
commit
357d9164ed
1 changed files with 6 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue