From: Simon Ruderich Date: Tue, 14 Oct 2014 03:12:13 +0000 (+0200) Subject: zsh/rc: use history-incremental-pattern-search-* X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=eaf4b30009a6bad454d5da0a58a8085a9c26b041;p=config%2Fdotfiles.git zsh/rc: use history-incremental-pattern-search-* --- diff --git a/zsh/rc b/zsh/rc index c7a964e..33f840e 100644 --- a/zsh/rc +++ b/zsh/rc @@ -184,12 +184,12 @@ bindkey -a '^N' history-beginning-search-forward # Enable incremental search which is especially useful when the string is an # argument and not the command. -bindkey '^R' history-incremental-search-backward +bindkey '^R' history-incremental-pattern-search-backward # Also enable my usual use of Ctrl-P/Ctrl-N to get the previous/next matching # history entry. if [[ $ZSH_VERSION == (4.<4->*|<5->*) ]]; then - bindkey -M isearch '^P' history-incremental-search-backward - bindkey -M isearch '^N' history-incremental-search-forward + bindkey -M isearch '^P' history-incremental-pattern-search-backward + bindkey -M isearch '^N' history-incremental-pattern-search-forward fi # Automatically push cd-ed directories on the directory stack.