Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64489 - $HOME/.dir_colors not used in default .bashrc
Summary: $HOME/.dir_colors not used in default .bashrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-18 02:37 UTC by Merlyn Morgan-Graham
Modified: 2012-02-24 21:04 UTC (History)
1 user (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 Merlyn Morgan-Graham 2004-09-18 02:37:10 UTC
the file /etc/skel/.bashrc contains the line "eval `dircolors -b /etc/DIR_COLORS`", but in no place sources the file "$HOME/.dir_colors", as described in the file /etc/DIR_COLORS.  I don't belive "$HOME/.dir_colors" is sourced elsewhere, either.

This isn't terribly critical, it just disregards the promised behavior at the top of /etc/DIR_COLORS:
"# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults."

Reproducible: Always
Steps to Reproduce:



Expected Results:  
I believe the line in /etc/skel/.bashrc should read:
if [ -e "$HOME/.dir_colors" ]
then
  eval `dircolors -b $HOME/.dir_colors`
else
  eval `dircolors -b /etc/DIR_COLORS`
fi

rather than what it currently reads:
eval `dircolors -b /etc/DIR_COLORS`
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-09-28 21:16:48 UTC
Fixed in rc-scripts cvs, thanks
Comment 2 SpanKY gentoo-dev 2004-10-14 16:02:17 UTC
in baselayout-1.11.2