Simulate bash Up/Down behavior.
This commit is contained in:
7
.zshrc
7
.zshrc
@@ -66,8 +66,11 @@ key[PageUp]=${terminfo[kpp]}
|
||||
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history
|
||||
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history
|
||||
#
|
||||
bindkey "[A" history-beginning-search-backward
|
||||
bindkey "[B" history-beginning-search-forward
|
||||
autoload -Uz history-search-end
|
||||
zle -N history-beginning-search-backward-end history-search-end
|
||||
zle -N history-beginning-search-forward-end history-search-end
|
||||
bindkey "[A" history-beginning-search-backward-end
|
||||
bindkey "[B" history-beginning-search-forward-end
|
||||
#
|
||||
if [[ "`uname -s`" == "FreeBSD" || "`uname -s`" == "Darwin" ]]; then
|
||||
alias "ls=/bin/ls -aFG"
|
||||
|
||||
Reference in New Issue
Block a user