Skip to content

How to Configure Mac Terminal to have Color Output

Add color to your ls command, that looks great for viewing files and folders. To achieve this effect you have to edit your .bash_profile file.

$ vi ~/.bash_profile

Now, add the following two lines:

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

You can use this if you are using a black background:

export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx

Save and exit form editor and use source command to reflect changes or restart your terminal.

$ source ~/.bash_profile