From e15f25414390a5a52c88ec3ae4909769206dc41f Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Wed, 10 Apr 2024 16:37:56 +0000 Subject: [PATCH] Add readline shortcuts for improved history searching --- readline/.inputrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/readline/.inputrc b/readline/.inputrc index b77f8e3..eb59038 100644 --- a/readline/.inputrc +++ b/readline/.inputrc @@ -74,3 +74,10 @@ set keymap vi-insert Control-q: quoted-insert Control-@: set-mark Control-_: undo + "\e[A": history-search-backward + "\e[B": history-search-forward +set keymap vi-command + j: history-search-forward + k: history-search-backward + "\e[A": history-search-backward + "\e[B": history-search-forward