You need to specify ls parameter --colors=… (for example, through an alias). To actually set up the LS_COLORS environment LS_COLORS used to define colors, one of the good ways is to create a configuration file for dircolors , for example. with only bold (attribute 1) directories:
echo DIR 1 >~/.dir_colors
Then, in your .bash_profile or .bashrc , eval dircolors output is executed in this file to set LS_COLORS according to your configuration. The corresponding lines in my .bashrc (copied from somewhere) look like this:
if [ -n "$COLORTERM" ]; then alias ls='ls -F --color=auto' if [ -x "`which dircolors`" -a -r "$HOME/.dir_colors" ]; then eval `dircolors -b "$HOME/.dir_colors"` fi else alias ls='ls -F' fi
Note that some terminals do not display the bold attribute as true in bold by default, but simply use a brighter color. You need to configure your terminal to become bold.
See dircolors --print-database for an example of a "complete" configuration file.
Arkku source share