Update syntax hilighting plugin
[zsh.git] / .zsh / zsh-syntax-highlighting / docs / highlighters / root.md
1 zsh-syntax-highlighting / highlighters / root
2 ---------------------------------------------
3
4 This is the `root` highlighter, that highlights the whole line if the current
5 user is root.
6
7
8 ### How to tweak it
9
10 This highlighter defines the following styles:
11
12 * `root` - the style for the whole line if the current user is root.
13
14 To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`,
15 for example in `~/.zshrc`:
16
17 ZSH_HIGHLIGHT_STYLES[root]='bg=red'
18
19 The syntax for values is the same as the syntax of "types of highlighting" of
20 the zsh builtin `$zle_highlight` array, which is documented in [the `zshzle(1)`
21 manual page][zshzle-Character-Highlighting].
22
23 [zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting