MyNixOS website logo
option

programs.zsh.syntaxHighlighting.patterns

Specifies custom patterns to be highlighted by zsh-syntax-highlighting.

Please refer to the docs for more information about the usage: https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/pattern.md.

Declarations
Type
attribute set of string
Default
{ }
Example
{
  "rm -rf *" = "fg=white,bold,bg=red";
}