From bdc1d8c12a5c2764552b4325b36d6d3971099d42 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 2 Nov 2024 22:06:07 +0100 Subject: readline: Use emacs bindings --- .config/readline/inputrc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to '.config/readline/inputrc') 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 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 -- cgit v1.2.3