]> git.phdru.name Git - dotfiles.git/commitdiff
.inputrc: exchange Up/Dn and PgUp/PgDn keys
authorOleg Broytman <phd@phdru.name>
Wed, 8 Jun 2016 22:02:44 +0000 (01:02 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 8 Jun 2016 22:02:44 +0000 (01:02 +0300)
Make history walking/searching more vim-like

.inputrc

index e29d1c9a2c91333bcfeb125e28684a26eb9baff1..e0a65608b5cd82a18cd3e97afc8d49c59a8fb7d2 100644 (file)
--- 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