Mac OS | Change Directory and File Colors in Terminal

How to enable colored directory and file output in macOS Terminal with CLICOLOR and LSCOLORS

Configuration

Add the following lines to the ~/.bash_profile file.

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

Apply

Apply the settings with the following command.

source ~/.bash_profile

References