Skip to content

Commit 1386f12

Browse files
oletsphy1729
authored andcommitted
docs: ZSH_HIGHLIGHT_HIGHLIGHTERS is (main) by default
1 parent 754cefe commit 1386f12

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/highlighters.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,14 @@ ZSH_HIGHLIGHT_MAXLENGTH=512
4040
How to activate highlighters
4141
----------------------------
4242

43-
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array in
44-
`~/.zshrc`, for example:
43+
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array.
44+
By default `ZSH_HIGHLIGHT_HIGHLIGHTERS` is `(main)`. For example to activate
45+
`brackets`, `pattern`, and `cursor` highlighters, in `~/.zshrc` do:
4546

4647
```zsh
47-
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
48+
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(brackets pattern cursor)
4849
```
4950

50-
By default, `$ZSH_HIGHLIGHT_HIGHLIGHTERS` is unset and only the `main`
51-
highlighter is active.
52-
5351

5452
How to tweak highlighters
5553
-------------------------

0 commit comments

Comments
 (0)