You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
799 B

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