Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'changing the default --color colors' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
changing the default --color colors
Authored by: tunafat on Jan 12, '02 09:55:00PM

i have been searching long and hard in an attempt to change the dark blue used for directories in ls --color.

downloading the fileutils package from gnu gave me a command, 'dircolors'.

dircolors -b (for bash) or -c (for csh) generates the shell command to set the environment variables for the colors used in ls --color.

the deep blue color used for directories in ls --color is set by the di variable in the LS_COLORS environment variable. i've changed it to di=01;35.

to permanently set this for all shell invocations, you can copy the output generated by dircolors -b into your ~/.bash_profile.

[ Reply to This | # ]