zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
20k stars 1.33k forks source link

[enhancement] Add highlighting for flags/options/arguments #903

Closed bunexceptional closed 1 year ago

bunexceptional commented 1 year ago

So instead of

Suggestion_ScreenShot_Before Suggestion_ScreenShot_After
phy1729 commented 1 year ago

You seem to want ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=yellow; the full list of styles for the main highlighter is at https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md .

bunexceptional commented 1 year ago

Okay, I've set it up and it's working how I expected. Thanks!