您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

23 行
792 B

  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_HIGHLIGHT_STYLES[root]='bg=red'
  11. The syntax for values is the same as the syntax of "types of highlighting" of
  12. the zsh builtin `$zle_highlight` array, which is documented in [the `zshzle(1)`
  13. manual page][zshzle-Character-Highlighting].
  14. [zshzle-Character-Highlighting]: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting