summaryrefslogtreecommitdiff
path: root/.inputrc
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2021-05-30 20:40:08 +0200
committerMehdi Sadeghi <mehdi@mehdix.org>2021-05-30 20:40:08 +0200
commitac714ca8c409643ae936bf9250498da2d0be17e5 (patch)
tree21b8d06e9e1fec6c8e3cefc27a486077b54c5c17 /.inputrc
parent192c3522297871d84a4a1f3b4906d5926c347347 (diff)
Add C-p C-n to move through readline's history.
Diffstat (limited to '.inputrc')
-rw-r--r--.inputrc9
1 files changed, 5 insertions, 4 deletions
diff --git a/.inputrc b/.inputrc
index 2e98173..0f230bf 100644
--- a/.inputrc
+++ b/.inputrc
@@ -1,5 +1,6 @@
# Key bindings, up/down arrow searches through history
-"\e[A": history-subscring-search-backward
-"\e[B": history-subscring-search-forward
-"\eOA": history-subscring-search-backward
-"\eOB": history-subscring-search-forward
+"\e[A": history-substring-search-backward
+"\e[B": history-substring-search-forward
+
+"\C-p": history-substring-search-backward
+"\C-n": history-substring-search-backward