dot/inputrc: Miscellaneous tweaks I didn't know about before.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 11 Aug 2017 12:49:42 +0000 (13:49 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 11 Aug 2017 12:49:42 +0000 (13:49 +0100)
  * 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

index 0dadcbc..0f09c10 100644 (file)
@@ -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