Fix zsh history search crap

This commit is contained in:
Sage Vaillancourt 2020-06-12 18:44:25 -04:00
parent 4f2e506ab1
commit 95eabb0778
1 changed files with 8 additions and 4 deletions

12
.zshrc
View File

@ -9,10 +9,14 @@ setopt menu_complete
unsetopt beep unsetopt beep
bindkey -v bindkey -v
autoload -U up-line-or-beginning-search autoload -Uz up-line-or-beginning-search
autoload -U down-line-or-beginning-search autoload -Uz down-line-or-beginning-search
bindkey '^[[A' history-beginning-search-backward zle -N up-line-or-beginning-search
bindkey '^[[B' history-beginning-search-forward zle -N down-line-or-beginning-search
bindkey '\eOA' up-line-or-beginning-search
bindkey '\e[A' up-line-or-beginning-search
bindkey '\eOB' down-line-or-beginning-search
bindkey '\e[B' down-line-or-beginning-search
export EDITOR="vim" export EDITOR="vim"