Add up/down history search

65d5a32bf7016a45941bbd16d789aa7d445575d0
Alexis Sellier committed ago 1 parent 2c982c6f
.zshrc +12 -0
55 55
HISTFILE=~/.zsh_history
56 56
HISTSIZE=4096
57 57
SAVEHIST=4096
58 58
REPORTTIME=10
59 59
60 +
autoload up-line-or-beginning-search
61 +
autoload down-line-or-beginning-search
62 +
63 +
zle -N up-line-or-beginning-search
64 +
zle -N down-line-or-beginning-search
65 +
66 +
bindkey "\e[A" up-line-or-beginning-search
67 +
bindkey "\e[B" down-line-or-beginning-search
68 +
69 +
#
70 +
# Options
71 +
#
60 72
setopt NO_BG_NICE
61 73
setopt NO_HUP
62 74
setopt NO_LIST_BEEP
63 75
setopt LOCAL_OPTIONS
64 76
setopt LOCAL_TRAPS