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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue