May 26
History Searching in zsh
/ May 26, 2006
I have ^F bound to search my zsh history (think ^F == Find).
bindkey ^f history-incremental-search-backward
I'm also using vi key bindings, so I actually bind it via:
for keymap in v a; do
bindkey -$keymap ^f history-incremental-search-backward
done
Relevant zsh history config options:
HISTSIZE=100 SAVEHIST=100 HISTFILE=~/.zsh/history setopt append_history setopt inc_append_history setopt extended_history setopt hist_find_no_dups setopt hist_ignore_all_dups setopt hist_reduce_blanks setopt hist_ignore_space setopt hist_no_store setopt hist_no_functions setopt no_hist_beep setopt hist_save_no_dups