From 44cc1747cfd6ca9d0721f32b33da0863220290c3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 14 Jan 2012 14:28:47 +0100 Subject: [PATCH] inputrc: Ctrl-P/Ctrl-N only display matching lines. --- inputrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inputrc b/inputrc index 20832da..981c621 100644 --- a/inputrc +++ b/inputrc @@ -23,5 +23,8 @@ set editing-mode vi "jj": vi-movement-mode "jk": vi-movement-mode -"\C-p": previous-history -"\C-n": next-history +# / with the additional effect that only lines starting with the +# current input are matched. Very useful to recall old commands quickly - just +# type the first few characters. +"\C-p": history-search-backward +"\C-n": history-search-forward -- 2.45.2