From a21acf0bdc58af3ef9e80bf25dbb91276208126a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 9 Jun 2016 01:02:44 +0300 Subject: [PATCH] .inputrc: exchange Up/Dn and PgUp/PgDn keys Make history walking/searching more vim-like --- .inputrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.inputrc b/.inputrc index e29d1c9..e0a6560 100644 --- a/.inputrc +++ b/.inputrc @@ -35,10 +35,14 @@ M-Tab: menu-complete #"\C-h": backward-delete-char #"\e\C-h": backward-kill-word -# PgUp/PgDn - more intelligent Up/Down behavior: use the text that has already +# PgUp/PgDn - previous/next command in history +"\e[5~": previous-history +"\e[6~": next-history + +# More intelligent Up/Down behavior: use the text that has already # been typed as the prefix for searching through commands. -"\e[5~": history-search-backward -"\e[6~": history-search-forward +"\e[A": history-search-backward +"\e[B": history-search-forward # Debug "\C-xf": dump-functions -- 2.39.5