summaryrefslogtreecommitdiff
path: root/.config/readline
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-31 18:55:29 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-10-31 18:55:29 +0100
commit2e4ab474c0feea58c3897cf44e334789feb5aa1e (patch)
treecf41b0af4bd027c3d48b5538f047f1f746978c4f /.config/readline
parent05499935984b911dbe666f9342f5126b1b0a4707 (diff)
readline: Make configuration more comprehensive
Diffstat (limited to '.config/readline')
-rw-r--r--.config/readline/inputrc20
1 files changed, 19 insertions, 1 deletions
diff --git a/.config/readline/inputrc b/.config/readline/inputrc
index 3f0376a..89bead7 100644
--- a/.config/readline/inputrc
+++ b/.config/readline/inputrc
@@ -1,9 +1,27 @@
+set bell-style none
set editing-mode vi
+set completion-ignore-case on
+
+# Colored completions
+set colored-stats on
+set colored-completion-prefix on
+
+# Treat hyphens and underscores the same in the context of completion
+set completion-map-case on
$if editing-mode == vi
+ # Change cursor to a bar when in insert mode
set show-mode-in-prompt on
set vi-ins-mode-string "\1\e[6 q\2"
set vi-cmd-mode-string "\1\e[2 q\2"
+
+ # Bring back this binding from Emacs mode
+ C-l: clear-screen
$endif
-"\C-l": clear-screen
+$if Bash
+ C-p: " | $PAGER"
+
+ # Since <C-r> is bound to ‘forward-search-history’
+ C-t: reverse-search-history
+$endif