


Hence the syntax is as follows and need to append into your ~/.zshrc file: The latest version of macOS comes with zsh instead of bash. Source the changes immediately using the source command: Want to enable colorized output permanently? You need to add the following command in the ~/.bashrc or ~/.bash_profile file:Īppend the following alias: export CLICOLOR=1 You need to play with config files until it works out. On macOS Monterey I found ~/.bashrc working. Hence you must add commands to ~/.bash_profile.

When an interactive shell that is not a login shell is started, Bash reads and executes commands from ~/.bashrc. When bash is your login shell, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile file in that order. $ ls -l Configure ~/.bashrc or ~/.bash_profile or ~/.profile to display colorful ls command This option is equivalent to defining CLICOLOR or COLORTERM in the environment and passing the -color=auto to the ls command.
