[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: colorized ls



On Sun, May 09, 2010 at 04:26:36PM -0400, Rick Pasotto wrote:
> What did I update recently that caused me to lose ls coloring with this
> error message:
> 
> ls: unrecognized prefix: hl
> ls: unparsable value for LS_COLORS environment variable
> 
> How should I fix it?

In academic interest you can look what LS_COLORS environment variable contain:

$ echo $LS_COLORS

After that you can look what's wrong with it.

Fix is pretty easy:

$ eval `dircolors`

Read man pages for dircolors(1) and  dir_colors(5) for most complete reference.
Note that you should place command mentioned above to .bashrc (or .zshrc, or
whatever your shell' config is) so it will run every time shell starts.

-- 
Regards,
Alexander Batischev


Reply to: