LSColors on Mac

I find it very useful to see different colors for different kinds of files and folders when using the ls command in terminal. By default, there are no colors in Mac terminal:

Terminal without color

Fortunately, this can be changed easily. You need to add the following lines to your .profile file:

export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad

First line basically enables colors in the terminal, the second line determines what colors to use for what type of files/folders. There’s a nice little site that generates the LSCOLORS for you. After these changes, you have different colors for folders, executable files etc.

Terminal with color
Categories Mac

2 thoughts on “LSColors on Mac

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s