Hello,
I use a Mac Book Pro for my personal laptop. When using the bash shell, I noticed that when performing a ls on a directory all the file listings were in the same color. However when I am on Debian or Red Hat these listings looked colorful.
I searched this topic and I was able to come up with this cool hack.
Edit your .bash_profile file in your home directory with you favorite editor. Add the following to the file. Log out and have a look. Pretty cool when you run a list.
Code:
laptop:~ jasonralph$vi ~/.bash_profile
Here is the edited file.
Code:
laptop:~ jasonralph$ cat .bash_profile
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
laptop:~ jasonralph$
So now you can logout and run a colorful listing.
Before editing:
After Editing.
Have fun,
Jaysunn