Heyas,
If I set
eval 'dircolors -b'
in the .bashrc files for my user and root, then the colors work when I do an "ls". However, I looked in /etc/profile and it looks like this should already be set. I even tried putting the "eval 'dircolors -b'" command at the end of the file and taking ti out of the .bashrc files, but then the colors stop working. Shouldn't /etc/profile make the setting a default for all users?
I know I could just leave it how it is with the ~/.bashrc files setting dircolors, however if I ever add new users I would have to do the same thing for anyone new. It just seems like it'd be more efficient if /etc/profile worked.
Also this is the section of my /etc/profile that I think should be setting the colors:
Code:
# Set up the LS_COLORS and LS_OPTIONS environment variables for color ls:
if [ "$SHELL" = "/bin/zsh" ]; then
eval `dircolors -z`
elif [ "$SHELL" = "/bin/ash" ]; then
eval `dircolors -s`
else
eval `dircolors -b`
fi
Anyone have any ideas why /etc/profile isn't setting this by default?
Thanks,
Chris