summaryrefslogtreecommitdiff
path: root/.config/readline
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-02 22:06:07 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-02 22:06:07 +0100
commitbdc1d8c12a5c2764552b4325b36d6d3971099d42 (patch)
tree10814867fd67369f04cf8a9288f9330c58ca5551 /.config/readline
parent7727240032c4244641969c22db30113b73a71ca9 (diff)
readline: Use emacs bindings
Diffstat (limited to '.config/readline')
-rw-r--r--.config/readline/inputrc16
1 files changed, 6 insertions, 10 deletions
diff --git a/.config/readline/inputrc b/.config/readline/inputrc
index fdb5cdf..e663e57 100644
--- a/.config/readline/inputrc
+++ b/.config/readline/inputrc
@@ -1,14 +1,10 @@
set bell-style none
-set editing-mode vi
-set completion-ignore-case on
+set editing-mode emacs
# 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
-
# Complete prefix and show choices on one tab
set show-all-if-ambiguous on
@@ -27,15 +23,15 @@ $if editing-mode == vi
$endif
$if Bash
- C-p: "| $PAGER"
+ $if editing-mode == vi
+ C-p: "| $PAGER"
+ C-t: reverse-search-history
+ $endif
C-o: "./..."
-
- # Since <C-r> is bound to ‘forward-search-history’
- C-t: reverse-search-history
$endif
set keymap vi-command
€: end-of-line
set keymap vi-insert
-C-l: clear-screen
+C-l: clear-screen \ No newline at end of file