Friday, December 7, 2007

Linux - Better "ls" coloring scheme against dark background

After fixing the the vi(vim) problem, now we are going to fix a similar problem for "ls". Again, if your terminal has dark background, the result of ls is hard to read. I used to disable the ls coloring altogether by

>unalias ls

Since most Linux, alias the ls command as 'ls --color=tty'

It is some over kill, I found a better solution here

You can just simply unset the LS_COLORS as:
>export LS_COLORS=""

ls now use a better color scheme to display the result