From c626c512d4420440410e22955c23cf0ea8b0d2b1 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 11 Aug 2017 13:49:42 +0100 Subject: [PATCH] dot/inputrc: Miscellaneous tweaks I didn't know about before. * Don't ding the bell for completion or cursor movement out-of-bounds. * Highlight completed filenames using the prevailing ls(1) colours. (But continue not highlighting the existing prefix.) * Do the bracketed-paste thing to make mis-aimed pastes less dangerous. (This may also cause some annoyance, but I think I'm willing to tolerate that for the extra safety.) * Use Readline macros to bind M-SPC to a simulacrum of `just-one- space'. The documentation of Readline macros is rather unclear about which level the macro characters are inserted. It turns out that they're keyboard macros. --- dot/inputrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dot/inputrc b/dot/inputrc index 0dadcbc..0f09c10 100644 --- a/dot/inputrc +++ b/dot/inputrc @@ -6,12 +6,17 @@ set output-meta on set convert-meta off ## Other twiddles. +set bell-style none set bind-tty-special-chars off set blink-matching-paren on +set colored-completion-prefix off +set colored-stats on +set enable-bracketed-paste on ## Missing bindings "\e\e[C": forward-word "\e\e[D": backward-word +"\e ": "\e\\ " ## Because the default bindings are just too weird. "\en": history-search-forward -- 2.11.0