From: Mark Wooding Date: Fri, 11 Aug 2017 12:49:42 +0000 (+0100) Subject: dot/inputrc: Miscellaneous tweaks I didn't know about before. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/c626c512d4420440410e22955c23cf0ea8b0d2b1 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. --- 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