Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583814 - app-shells/bash: bashrc changes disables ls file-extension based colored output by default
Summary: app-shells/bash: bashrc changes disables ls file-extension based colored outp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-22 20:46 UTC by Christopher Head
Modified: 2016-06-23 06:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Head 2016-05-22 20:46:44 UTC
Commit a70b06857fc83ef6f85a6c06b3478c0c25ec8fdaa70b06857fc83ef6f85a6c06b3478c0c25ec8fda modified /etc/bash/bashrc such that it no longer exports $LS_COLORS if it would be identical to the built-in database used by “dircolors -b” with no filename.

The problem is that this means I no longer have coloured ls output. I didn’t modify my database locally, but I liked the defaults. Before this commit, $LS_COLORS would be set to the default string and I would get colours by file extension. Now $LS_COLORS is unset, and I don’t get colours by file extension.
Comment 1 SpanKY gentoo-dev 2016-05-23 20:09:38 UTC
i meant to fix this, but it fell by the wayside
Comment 2 SpanKY gentoo-dev 2016-06-23 06:03:52 UTC
i guess i read too much in the documentation for ls/dircolors and not enough of the source.  if LS_COLORS isn't set, then `ls` will only colorize by file attributes (e.g. dir, sock, +x).  it won't load/use the dircolors database automatically.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e034ed6fa7205737661467cc148fadba79d7fec8