summaryrefslogtreecommitdiffstats
path: root/.inputrc
diff options
context:
space:
mode:
Diffstat (limited to '.inputrc')
-rw-r--r--.inputrc26
1 files changed, 26 insertions, 0 deletions
diff --git a/.inputrc b/.inputrc
new file mode 100644
index 0000000..a6c393c
--- /dev/null
+++ b/.inputrc
@@ -0,0 +1,26 @@
+# Swap history search keys
+
+"\e[5~": previous-history
+"\eOA": history-search-backward
+"\e[A": history-search-backward
+
+"\e[6~": next-history
+"\eOB": history-search-forward
+"\e[B": history-search-forward
+
+set completion-ignore-case on
+set completion-prefix-display-length 2
+$if term=dumb
+# Nothing to do
+$else
+Control-j: menu-complete
+Control-l: menu-complete-backward
+$endif
+
+set show-all-if-ambiguous on
+set show-all-if-unmodified on
+set completion-map-case on
+
+"\e[C": forward-char
+"\e[D": backward-char
+