Make zsh history behaviour match bash

This commit is contained in:
Anthony Rose 2022-08-23 13:56:37 +01:00
parent 32521dd7c6
commit b1e9914ee4

View file

@ -13,16 +13,13 @@ then
. /etc/zshrc . /etc/zshrc
fi fi
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey -e bindkey -e
bindkey "^[[1;5C" forward-word bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word bindkey "^[[1;5D" backward-word
bindkey "^[[A" history-beginning-search-backward-end bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward-end bindkey "^[[B" history-beginning-search-forward
bindkey "^[OA" history-beginning-search-backward-end bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward-end bindkey "^[OB" history-beginning-search-forward
export PS1="%B%n@%m%#%b " export PS1="%B%n@%m%#%b "