Bug 12634 - ~/.dir_colors does not work (for me)
~/.dir_colors does not work (for me)
Product: Red Hat Linux
Classification: Retired
Component: fileutils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
: 13465 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2000-06-19 14:20 EDT by giulioo
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-19 07:25:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description giulioo 2000-06-19 14:20:10 EDT
I copied /etc/DIR_COLORS into ~/.dir_colors, modified it, login, but it 
has no effect.
I could not find any place where .dir_colors is evaluated in the 
init/profile scripts.

I had to add 

if [ -f ~/.dir_colors ]; then
        eval `dircolors --sh ~/.dir_colors`

into .bash_profile to make it work

Maybe the right thing would be to do it in /etc/profile.d/colorsls.sh
Comment 1 Bill Nottingham 2000-07-04 15:32:26 EDT
*** Bug 13465 has been marked as a duplicate of this bug. ***
Comment 2 Preston Brown 2000-07-10 15:40:38 EDT
fixed in rawhide.
Comment 3 Pekka Savola 2000-12-19 07:25:42 EST
It seems /etc/DIR_COLORS talks about ~/.dir_colors, not ~/.dircolors which was implemented.

Please correct the other.
Comment 4 Bernhard Rosenkraenzer 2001-05-17 17:08:01 EDT
This was fixed in 4.1-2

Note You need to log in before you can comment on or make changes to this bug.