zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
20k stars 1.33k forks source link

docs: ZSH_HIGHLIGHT_HIGHLIGHTERS is (main) by default #926

Closed olets closed 1 year ago

olets commented 1 year ago
  1. Fix: Current docs say "By default, $ZSH_HIGHLIGHT_HIGHLIGHTERS is unset". By default
    % echo ${(t)ZSH_HIGHLIGHT_HIGHLIGHTERS}
    array
    % echo $ZSH_HIGHLIGHT_HIGHLIGHTERS
    main
  2. Subjective: Current docs say that to "add [a highlighter] to the ZSH_HIGHLIGHT_HIGHLIGHTERS array", do
    ZSH_HIGHLIGHT_HIGHLIGHTERS=(main <highlighter>)

    which to me reads as "redefined", compared to +=(<highlighter) for "add"

phy1729 commented 1 year ago

LGTM. Thanks! And thank you for following the commit message style too.