Solved LSCOLORS doesn't take effect

/etc/csh.cshrc
setenv LSCOLORS ExGxFxdxCxegedabagExEx
setenv CLICOLOR yes


printenv LSCOLORS shows that LSCOLORS has been set, but ls still displays dirs in deep blue instead of light blue.

What's the problem?
 
ls(1) says "E bold blue", why do you expect it to be light blue? It's your terminal emulator settings that need to be changed to display "bold blue" as "light blue", if anything.
 
Well, the color support of FreeBSD's ls(1) is quite lacking, unfortunately. Basically it supports only 8 colors (plus bold), and only a few types of directory entries. Most of those 8 colors are rather dark, so it's useless if you prefer terminals with a dark background.

For much better color support you'll have to install GNU ls (misc/gnuls). It supports 256 colors in xterm, rxvt and most other terminals, as well as various attributes (bold, inverse, underline). It also supports many more types of directory entries, for example you can assign different colors to symlinks depending on whether their target exists, which I think is very useful.
 
Back
Top