programs.zsh.syntaxHighlighting.patterns

NixOS option

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

type: attribute set of string
Default
{ }
Example
{
  "rm -rf *" = "fg=white,bold,bg=red";
}
declared in: nixos/modules/programs/zsh/zsh-syntax-highlighting.nixView source on NixOS/nixpkgs →