Skip to content

Why are flags and subcommands highlighted in a different color? #1656

Closed Answered by rsteube
rsteube asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Flags are highlighted depending on whether they take an argument.

Color can be configured with carapace --style carapace.Flag*.

  1. Commands are highlighted when they belong to a group.

Color can be configured with carapace --style carapace.Highlight*.
In zsh the group name can be shown with zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'.

Replies: 1 comment

Comment options

rsteube
Apr 12, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by rsteube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant