From 5bfa759dda45642941e30807bb9355a50619e88c Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Sat, 3 May 2014 22:17:33 +0800 Subject: [PATCH] Simulate bash Up/Down behavior. --- .zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index f23cc0b..fcfa027 100644 --- a/.zshrc +++ b/.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 "" history-beginning-search-backward -bindkey "" 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 "" history-beginning-search-backward-end +bindkey "" history-beginning-search-forward-end # if [[ "`uname -s`" == "FreeBSD" || "`uname -s`" == "Darwin" ]]; then alias "ls=/bin/ls -aFG"