How to enable colorized output for ls command in macOS X Terminal
To enable colorized output for the ls command in the macOS X Terminal, you need to add the following line to your shell configuration file (e.g. ~/.bash_profile or ~/.bashrc):
export CLICOLOR=1This will enable colorized output for the ls command in the terminal.
If you don't have any of these files, create a new one using the following command:
nano ~/.bash_profileThen add the line export CLICOLOR=1, save the file, and restart the terminal for the changes to take effect.
