Plugin configuration #5
-
Hi @marlonrichert, thank you for this nice template. When I put my Config snippet: ZSH_HIGHLIGHT_HIGHLIGHTERS=(main regexp)
typeset -A ZSH_HIGHLIGHT_REGEXP
ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' fg=yellow,bold,underline) |
Beta Was this translation helpful? Give feedback.
Answered by
marlonrichert
Feb 20, 2022
Replies: 1 comment 1 reply
-
Inside a function, typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS=(main regexp)
typeset -gA ZSH_HIGHLIGHT_REGEXP=('\bsudo\b' fg=yellow,bold,underline) For more info, see the following sections in the Zsh manual: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
helmecke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inside a function,
typeset -A
is the same aslocal -A
. To create a global parameter, usetypeset -gA
instead:For more info, see the following sections in the Zsh manual:
typeset