From 1547eb922c12ba8bd072c6ae4cfde4868c97db68 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sun, 28 Jan 2024 18:39:58 -0500 Subject: [PATCH] Always use c-r as reverse history search in zsh --- nix/base-system/.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/base-system/.zshrc b/nix/base-system/.zshrc index cb4e2c1..4f1d15b 100644 --- a/nix/base-system/.zshrc +++ b/nix/base-system/.zshrc @@ -2,5 +2,8 @@ set -o vi export PROMPT='%F{green}[%T] %F{cyan}(%n@%m) %F{lightgrey}(%y) %F{cyan} %~ %F{white}%(!.>>.$>) ' +# Alwoys use C-R for history search backward +bindkey '^R' history-incremental-search-backward + # Opam configurattion [[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null