Skip to content

fix: changed color of ZSH_HIGHLIGHT_COLOR[comment]#970

Open
tausiq2003 wants to merge 1 commit intozsh-users:masterfrom
tausiq2003:tausiq2003-change-comment-color
Open

fix: changed color of ZSH_HIGHLIGHT_COLOR[comment]#970
tausiq2003 wants to merge 1 commit intozsh-users:masterfrom
tausiq2003:tausiq2003-change-comment-color

Conversation

@tausiq2003
Copy link
Copy Markdown

So, if we type comments (interactive comments (#) or "elided parameters in command position" ($)), then its fg is black which is not visible for the normal terminal users, so it doesn't makes any sense, so I changed it a greyish version to 245 so that it will be clearly visible, fixed issue #969

So, if we type comments (interactive comments (`#`) or "elided parameters in command position" (`$`)), then its fg is black which is not visible for the normal terminal users, so it doesn't makes any sense, so I changed it a greyish version to 245 so that it will be clearly visible
: ${ZSH_HIGHLIGHT_STYLES[assign]:=none}
: ${ZSH_HIGHLIGHT_STYLES[redirection]:=fg=yellow}
: ${ZSH_HIGHLIGHT_STYLES[comment]:=fg=black,bold}
: ${ZSH_HIGHLIGHT_STYLES[comment]:=fg=245,bold}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes the terminal supports 256 colours. Is this assumption valid in all supported use-cases?

(It also assumes zsh supports that syntax, but I don't have time right now to look up when the fg=N syntax was added to zsh. Probably long enough ago.)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't tested it locally, but I changed the `ZSH_HIGHLIGHT_STYLES[comment] to fg=245,bold and it worked in my system(nixos), and ubuntu on docker, zsh version: 5.9

@danielshahaf
Copy link
Copy Markdown
Member

To the other maintainers: I'm not sure whether I should be pressing "Approve workflows to run" right now or not. If workflows should be approved to run, could someone greenlight them, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants