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).


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].

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.