Enable Colors in Mac OS X Terminal

Enable Colors in Mac OS X Terminal:


By default Mac OS X Terminal doesn’t have color support enabled for differentiating file types. If you are coming from Linux background this is really frustrating thing.
In general Unix system support ls –color option to enable console colors. But I found out that the underlying BSD system for Mac OS X doesn’t support this option. Instead of the color they have -G option.
Finally you can fix this color issue by using following command in the terminal
alias ls=’ls -G’