See colorful ls output

๐Ÿ“Œ Check your shell

ps -p $$

Mine is zsh, so I would need to modify .zshrc.

If youโ€™re using bash, it would be .bashrc.


๐Ÿ“Œ Open and modify your shell configuration file

Open the shell configuration file with any text editor you like.

I used vim here.

vim ~/.zshrc

Then, add export CLICOLOR=1.

You can go to insert mode by pressing i, and add that line. When youโ€™re done, press esc and type :wq to save and exit.


๐Ÿ“Œ Then

source ~/.zshrc

Now when you type ls, youโ€™ll be able to see colorized output!

Updated: