Make zsh history behaviour match bash
This commit is contained in:
parent
32521dd7c6
commit
b1e9914ee4
1 changed files with 4 additions and 7 deletions
|
@ -13,16 +13,13 @@ then
|
|||
. /etc/zshrc
|
||||
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 "^[[1;5C" forward-word
|
||||
bindkey "^[[1;5D" backward-word
|
||||
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
|
||||
bindkey "^[[A" history-beginning-search-backward
|
||||
bindkey "^[[B" history-beginning-search-forward
|
||||
bindkey "^[OA" history-beginning-search-backward
|
||||
bindkey "^[OB" history-beginning-search-forward
|
||||
|
||||
export PS1="%B%n@%m%#%b "
|
||||
|
||||
|
|
Loading…
Reference in a new issue