From 14487ff5cc0233acf4ed3398559d975e92d52d51 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 22 Nov 2015 10:19:49 -0800 Subject: 37192: silence WARN_CREATE_GLOBAL in prompt themes --- Functions/Prompts/promptinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions/Prompts/promptinit') diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit index edf2d028b..587248997 100644 --- a/Functions/Prompts/promptinit +++ b/Functions/Prompts/promptinit @@ -160,7 +160,7 @@ Use prompt -h for help on specific themes.' for hook in chpwd precmd preexec periodic zshaddhistory zshexit; do add-zsh-hook -D "${hook}" "prompt_*_${hook}" done - set -A zle_highlight ${zle_highlight:#default:*} + typeset -ga zle_highlight=( ${zle_highlight:#default:*} ) (( ${#zle_highlight} )) || unset zle_highlight prompt_$1_setup "$@[2,-1]" && prompt_theme=( "$@" ) -- cgit v1.2.3