summaryrefslogtreecommitdiffstats
path: root/.inputrc
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2019-01-29 03:36:34 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2019-01-30 16:25:39 (GMT)
commit534da3e211edc7cc69161acc6626111edbe9711f (patch)
treecdb0e24a2d9179414d9aff84c68845fe86663b5f /.inputrc
downloaddotfiles-534da3e211edc7cc69161acc6626111edbe9711f.zip
dotfiles-534da3e211edc7cc69161acc6626111edbe9711f.tar.gz
dotfiles-534da3e211edc7cc69161acc6626111edbe9711f.tar.bz2
Import to new dotfiles repository
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
+