Use history-search-end in zsh
This commit is contained in:
parent
087e13bc5e
commit
1033f4b8ed
1 changed files with 7 additions and 4 deletions
|
@ -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 "
|
||||
|
||||
|
|
Loading…
Reference in a new issue