From 95eabb0778526b152eec3a71eed6462e59c39d8c Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 12 Jun 2020 18:44:25 -0400 Subject: [PATCH] Fix zsh history search crap --- .zshrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index bb601e2..f265785 100644 --- a/.zshrc +++ b/.zshrc @@ -9,10 +9,14 @@ setopt menu_complete unsetopt beep bindkey -v -autoload -U up-line-or-beginning-search -autoload -U down-line-or-beginning-search -bindkey '^[[A' history-beginning-search-backward -bindkey '^[[B' history-beginning-search-forward +autoload -Uz up-line-or-beginning-search +autoload -Uz down-line-or-beginning-search +zle -N up-line-or-beginning-search +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"