Editing /etc/DIR_COLORS does not change colours in terminal
i'm trying to change the default colours for files/directories/etc in my terminal (a term), i did some looking around and found that i need to edit /etc/DIR_COLORS
so i did, following the comment lines i added
and edited the colour values, yet it remains the same, i logged out and in again but still nothing, even copied the file into ~/ but that didnt work.
Is there some aterm config or somethign over writing these settings.
Thanks for your time
Did you copied /etc/DIR_COLORS in to your home directory as .dir_colors ?
The /etc/DIR_COLORS file says.....
# Configuration file for the color ls utility
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.
I tried this sometime before, and it works fine for me.
are you sure you are trying to view the listing w/ colors? e.g. ls --color==tty
I'm pretty sure it's using colours, the directories appear blue etc.
I was also having this problem, but then after much frustration found the answer. I noticed that there were actually two files: /etc/DIR_COLORS and /etc/DIR_COLORS.xterm then i noticed that echo $TERM returned "xterm". If this is your case, like it was mine, you have two options:
1) edit /etc/DIR_COLORS.xterm according to man /etc/DIR_COLORS
2) add these two lines to ~/.bash_profile
|All times are GMT -5. The time now is 10:01 AM.|