TIL: Reverse history search with regular expressions

Newsletter Dec 30, 2023

Zsh now comes with history-incremental-pattern-search-backward, you don't need to define it yourself. Just add key binding. I prefer to override ^R by adding the following line to .zshrc:

bindkey '^R' history-incremental-pattern-search-backward

source https://superuser.com/a/1502158

Tags