]> git.phdru.name Git - dotfiles.git/commitdiff
.inputrc: Change key bindings
authorOleg Broytman <phd@phdru.name>
Tue, 6 Mar 2018 16:37:10 +0000 (19:37 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Mar 2018 16:38:54 +0000 (19:38 +0300)
Restore Up/Down behaviour to be prev/next history.
Make PgUp/PgDn behaviour to be prev/next search.

.inputrc

index 04095afcee8343484a00597e90c464cce401fbfe..5bfecb9cf8123013eabc30c6ef97db5c24b9c073 100644 (file)
--- a/.inputrc
+++ b/.inputrc
@@ -37,14 +37,10 @@ M-Tab: menu-complete
 #"\C-h": backward-delete-char
 #"\e\C-h": backward-kill-word
 
-# 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
+# More intelligent PgUp/PgDn behavior: use the text that has already
 # been typed as the prefix for searching through commands.
-"\e[A": history-search-backward
-"\e[B": history-search-forward
+"\e[5~": history-search-backward
+"\e[6~": history-search-forward
 
 # Debug
 "\C-xf": dump-functions