5


When typing comments into the command-line in zsh, the commented text appears nearly invisible. I use the st terminal (Luke Smith's fork), which pulls on my .Xresources for setting colors and it seems that comments get set to color0. This is an issue because the background color of the terminal is also set by color0, meaning that the comment color always matches the background, and thus, is always invisible (I can kind of see it because my terminal background is slightly transparent). Any ideas on how to fix this? Here's what the coloring looks like:

my terminal coloring

Edit: I'm using zsh-syntax-highlighting (through oh-my-zsh).

0

1 Answer 1

1

I've actually figured out the solution--thanks for pointing me towards my syntax highlighter! I just needed to go into zsh-syntax-highlighting's main highlighter and change the values for ZSH_HIGHLIGHT_STYLES[comment].

1
  • So to actually change the font color, you can put e.g. ZSH_HIGHLIGHT_STYLES[comment]="fg=#eeeeee" into your zshrc file
    – user640916
    Nov 22, 2023 at 9:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .