A recent system upgrade broke my terminal colors. I don't know what exactly it was, or how it happened, but I opened a new terminal window, did a `ls`, and all my directories were bold and blue again. I personally find this difficult to read as I use a very dark blue background in my terminals (something on the order of #111133).
The solution:
Run the following command to create a default dir_colors file (the file that generates the colors for the ls command):
`dircolors -p > ~/.dir_colors`Then, add the following to your .bashrc file:
# set the TERM variable to a color-enabled type (xterm-color)
export TERM="xterm-color"
# source my own .dir_colors file
if [ -f $HOME/.dir_colors ]
then
eval `dircolors -b $HOME/.dir_colors
fi
I personally make the following changes in ~/.dir_colors:
- DIR 01;34
+ DIR 00;36 # directories are cyan and non-bold
man dircolorsor
man dir_colors
No comments:
Post a Comment