浏览代码

docs: ZSH_HIGHLIGHT_HIGHLIGHTERS is (main) by default

pull/931/head
Henry Bley-Vroman 1年前
提交者 Matthew Martin
父节点
当前提交
1386f1213e
共有 1 个文件被更改,包括 4 次插入6 次删除
  1. +4
    -6
      docs/highlighters.md

+ 4
- 6
docs/highlighters.md 查看文件

@ -40,16 +40,14 @@ ZSH_HIGHLIGHT_MAXLENGTH=512
How to activate highlighters
----------------------------
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array in
`~/.zshrc`, for example:
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array.
By default `ZSH_HIGHLIGHT_HIGHLIGHTERS` is `(main)`. For example to activate
`brackets`, `pattern`, and `cursor` highlighters, in `~/.zshrc` do:
```zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(brackets pattern cursor)
```
By default, `$ZSH_HIGHLIGHT_HIGHLIGHTERS` is unset and only the `main`
highlighter is active.
How to tweak highlighters
-------------------------

正在加载...
取消
保存