Add history-search-{backward,forward}.

This commit is contained in:
Gea-Suan Lin
2014-03-09 01:41:25 +08:00
parent a5e4aa0df3
commit 1ccae760a1

3
.zshrc
View File

@@ -47,6 +47,9 @@ 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-search-backward
bindkey "" history-search-forward
#
if [[ "`uname -s`" == "FreeBSD" || "`uname -s`" == "Darwin" ]]; then
alias "ls=/bin/ls -aFG"
alias "tmux=TERM=xterm-256color /usr/local/bin/tmux"