When I do ls
, the blue color is virtually impossible to read quickly or at a distance (screenshot below). I really want to change that to a readable color (lighter blue maybe?).
The command to change it is something like: export PS1="[\\u@\\H \\W \\@]\\$"
but that is not obvious at all what each part means (and it changed the wrong line type).
How do I change the blue? Thanks.
See
dircolors(1)
anddir_colors(5)
.To disable colors until you find some you like, use
\ls
.Here's a quick sample of using custom colors (in this case, cyan directory listings; though that clashes with the color for symlinks, there isn't going to be a "lighter blue"):
To make this the default, you can call
dircolors
as above in your initialization file.Your screenshot looks like it came from PuTTY, which does indeed let you change the color values used. To change it, go to PuTTY's settings(either before you open the connection or by right clicking on the title bar and clicking Change Settings), go to Window and then Colors. In the list box on the right, click ANSI Blue and increase some combination of the 3 numbers on the far right.
Chances are your directory color is set to
00;34
. If you change it to01;34
it'll be a little bit lighter shade of blue.In your
~/.bashrc
file you may have a line similar to this:Below that line, add this:
You could enter that line at a shell prompt to try it out, first if you'd like.
If you reread (source) the file:
or start a new session, you should see the new color.