logo
Published on

Enable colorized `ls` output in terminal

Authors
  • avatar
    Name
    Jenny Kim
    Twitter

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!