I am trying to get the Solarized color scheme for xterm, but have not had much success with it. I am running Debian 6 and downloaded the Xresources
to ~/.Xresources
.
After loading the new settings with xrdb -load ~/.Xresources
, I get a XTerm with the blueish background from the theme, but no font colors.
The default xterm is capable of color, as you can see below:
How do I get the colors from solarized to show?
Best Answer
Your terminal is being colored by the new theme, as you can see from the new background and foreground colors. However, to make
ls
use more colors than the default set of colors, you should create adir_colors
config file and let it be sourced from~/.bashrc
. This file contains color and filetype pairs that are used to differentiate between different file types and their corresponding color to display. The environment variableLS_COLORS
should hold this data after sourcing andls
will use this to display filenames accordingly.The color code sequences used in
dir_colors
are equivalent to thebash
escape codes for displaying text in colors --1;31
will be bold red;0;31
will be normal red. Also, remember that these colors are always relative to the ones defined in~/.Xresources
so the red color for instance, will correspond toXTerm*color1
and so on.