From 044cef7c3e1387f34e20a1b36d2d6611af8fc43c Mon Sep 17 00:00:00 2001 From: Spotlight Date: Sun, 8 Dec 2019 14:56:36 -0600 Subject: [PATCH] zsh: potential fix for opacity and history search --- zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 2ccb193..6139d32 100644 --- a/zshrc +++ b/zshrc @@ -10,11 +10,16 @@ zplug "felixr/docker-zsh-completion" zplug "zsh-users/zsh-syntax-highlighting" zplug "zsh-users/zsh-autosuggestions" zplug "zsh-users/zsh-completions" +zplug "zsh-users/zsh-history-substring-search" zplug "johnhamelink/rvm-zsh", lazy:true zplug 'mfaerevaag/wd', as:command, use:"wd.sh", hook-load:"wd() { . $ZPLUG_REPOS/mfaerevaag/wd/wd.sh }" -bindkey "$terminfo[kcuu1]" history-beginning-search-backward -bindkey "$terminfo[kcud1]" history-beginning-search-forward +bindkey "^[[A" history-beginning-search-backward +bindkey "^[[B" history-beginning-search-forward +# Preserve opacity +# See: https://github.com/zsh-users/zsh-autosuggestions/issues/431#issuecomment-502329696 +# Will most likely need removal at a point. +ZSH_AUTOSUGGEST_IGNORE_WIDGETS=(${(@)ZSH_AUTOSUGGEST_IGNORE_WIDGETS:#zle-\*} zle-\^line-init) source $HOME/.zsh/expand-multiple-dots.zsh # cd .../.../? setopt prompt_subst # Make sure prompt is able to be generated properly.