Quote:
Originally Posted by casualzone
i have copied the DIR_COLORS in my .dir_colors in my home directory
make some changes in the DIR_COLORS file
invoke command below:
#dircolors .dir_colors/DIR_COLORS
but no changes is made.
|
Note that
.dir_colors is not a directory, it's a file. Copy
DIR_COLORS to
.dir_colors in your home directory, then make your changes to
.dir_colors.
At startup,
.dir_colors is read to create an
environment variable called
LS_COLORS, which contains the color definition
ls uses. In Slackware, this is done by
/etc/profile.d/coreutils-dircolors.sh.
Running the program dircolors (with an optional file) will return a string that can be used to set the
LS_COLORS variable. Usually you don't have to run it, only edit
.dir_colors, log out and log back in, that should do it.