The answer depends on your ls . BSD ls uses the LSCOLORS environment LSCOLORS ; coreutils ls uses LS_COLORS instead. See your manual page.
The utility Prezto module uses dircolors (if available) to adjust the colors of coreutils ls , which also happens with coreutils. Therefore, if you have coreutils, you can use dircolors to provide human-readable color definitions. See the dircolors page for more information. Prezto reads from $HOME/.dir_colors by default, otherwise it just uses the default colors defined by dircolors . You can, of course, specify other locations by editing on top of Prezto.
For BSD ls, there is probably no utility comparable to dircolors , so you need to manually define LSCOLORS . See the ENVIRONMENT section man page in its format, which should be pretty clear. Example: LSCOLORS='exfxcxdxbxGxDxabagacad' , used by default by Prezto. For it to take effect, put it in runcoms after downloading the utility utility Prezto.
source share