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
|
. /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 "
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue