Linux shell bash colors : the easy way to change them

The easy way :

#Backup your dircolors file :
dircolors -p > ~/.dircolorsrc

#Change the color .dircolorsrc :
nano .dircolorsrc

#If you want to change the directory color to yellow, find DIR 01,34 and change it :
DIR 01;33 # directory

#Change the .bashrc values :
eval "`dircolors -b ~/.dircolorsrc`"
export LS_OPTIONS='--color=auto'

Enjoy 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *