Use history-search-end in zsh

This commit is contained in:
Anthony Rose 2022-09-18 21:17:18 +01:00
parent 087e13bc5e
commit 1033f4b8ed

View file

@ -81,15 +81,18 @@ then
elif [ -n "$ZSH_VERSION" ]
then
autoload -Uz compinit && compinit
autoload -Uz history-search-end
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^[[3~" delete-char
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
bindkey "^[OA" history-beginning-search-backward-end
bindkey "^[OB" history-beginning-search-forward-end
PS1="%B%n@%m%#%b "