Fix zsh keybinds again

This commit is contained in:
Daniel Olsen 2022-04-02 04:01:58 +02:00
parent bfed832ea2
commit 1da42808c5
1 changed files with 11 additions and 5 deletions

View File

@ -41,11 +41,17 @@ in
autoload -U history-search-end autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end bindkey '^[OA' history-beginning-search-backward-end
bindkey '\e[H' beginning-of-line bindkey '^[OB' history-beginning-search-forward-end
bindkey '\e[F' end-of-line
bindkey '\e[3~' delete-char bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word
bindkey '^H' backward-kill-word
bindkey '^[OH' beginning-of-line
bindkey '^[OF' end-of-line
bindkey '^[[3~' delete-char
ZLE_RPROMPT_INDENT=0 ZLE_RPROMPT_INDENT=0