Enable colorized ls
output in terminal
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!