From: Simon Ruderich Date: Sat, 14 Jan 2012 13:28:47 +0000 (+0100) Subject: inputrc: Ctrl-P/Ctrl-N only display matching lines. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=44cc1747cfd6ca9d0721f32b33da0863220290c3;p=config%2Fdotfiles.git inputrc: Ctrl-P/Ctrl-N only display matching lines. --- 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