How can one change dircolors globally?

C de-Avillez hggdh2 at ubuntu.com
Tue Jul 31 19:43:21 UTC 2018


On Mon, 30 Jul 2018 13:39:05 +0100
Chris Green <cl at isbd.net> wrote:

> I don't want to 'force the choice', I want to change the defaults.
> 
> Other things like this tend to set defaults (which, as you say, users
> can then change) in a system-wide configuration file, often these are
> in /usr/share or sometimes /etc.  However dircolors (for some reason)
> actually has the defaults compiled into it so they can't be changed.

dircolors does give one the option of reading an external colour
database, so having an internal, compiled-in colour setup is not really
a problem. In other words, I do not quite see this as a failure of
dircolors.

Anyway, I see two possible solutions for the future:
* a change in /etc/bash.bashrc that will cause bashrc to try a
  local dircolors.db file before sourcing a system version of it;
* a change in coreutils that will cause it to do something equivalent.

I think (but may be wrong) that it might be easier to get the first
option (a change in Ubuntu, also requiring a bug to be opened, and a
good explanation of why this is good for *all* -- remember you are
proposing a change that will affect all users).


For the second option, you should email coreutils at gnu.org (*not*
bug-coreutils at gnu.org, this is not really a bug) and present you case
there.

No matter what, both will (if one of them is accepted) change the
future, not the current released *Ubuntu versions.

Apart from these options, I really do not see anything we can do here.

Cheers,

..C..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180731/11fd4de1/attachment.sig>


More information about the ubuntu-users mailing list