Solved LSCOLORS doesn't take effect

jronald

Active Member

Reaction score: 9
Messages: 176

/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?
 

yuripv

Active Member

Reaction score: 71
Messages: 172

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.
 
OP
OP
jronald

jronald

Active Member

Reaction score: 9
Messages: 176

It seems that konsole doesn't support bold, however the color is changed successfully.
 

olli@

Well-Known Member
Developer

Reaction score: 282
Messages: 320

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.
 
Top