Skip to content

Plugin configuration #5

Answered by marlonrichert
helmecke asked this question in Q&A
Discussion options

You must be logged in to vote

Inside a function, typeset -A is the same as local -A. To create a global parameter, use typeset -gA instead:

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:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marlonrichert
Comment options

Answer selected by helmecke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants