[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bracketed-paste-mode should default to "off"
From: |
Mike Frysinger |
Subject: |
Re: bracketed-paste-mode should default to "off" |
Date: |
Tue, 1 Feb 2022 18:24:57 -0500 |
On 31 Jan 2022 22:47, Karl O. Pinc wrote:
> There are obviously matters of taste here and I don't
> want to start a flame war, but IMO, bracketed-paste-mode
> should be off by default.
disagree, it should be on. but let's focus on unrelated interesting parts
you've proposed.
> Absent having bracketed paste off by default, it might be nice
> to have a /etc/inputrc.d/ directory that can have it's contents
> included by /etc/inputrc.
it would be nice if the $include directive supported directories, or at
least globs. then one could do:
$include /etc/inputrc.d/
$include /etc/inputrc.d/*.conf
the glob approach would sidestep the bikeshedding of what implicit globs
readline should use, and whether it should handle dot files, or ~ files,
or whatever else.
> That way there's not another
> config file that's different from the distro default that
> has to have changes merged on system upgrade. (On the third
> hand, yet more complication....)
you can already do this now. readline reads your ~/.inputrc first, and
then falls back to /etc/inputrc only if that doesn't exist. so do:
$ cat <<\EOF >~/.inputrc
set enable-bracketed-paste off
$include /etc/inputrc
EOF
or don't include the distro default if you don't want to ever rely on it.
-mike
signature.asc
Description: PGP signature