diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2015-11-22 10:19:49 -0800 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-11-22 10:19:49 -0800 |
| commit | 14487ff5cc0233acf4ed3398559d975e92d52d51 (patch) | |
| tree | 063987cc2c743bb5ad95f6dbc6edc23b4a14defb /Functions/Prompts/promptinit | |
| parent | 37191: fix strftime() expansion issue with %p and %P. (diff) | |
| download | zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.gz zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.bz2 zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.lz zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.xz zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.zst zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.zip | |
37192: silence WARN_CREATE_GLOBAL in prompt themes
Diffstat (limited to 'Functions/Prompts/promptinit')
| -rw-r--r-- | Functions/Prompts/promptinit | 2 |
1 files changed, 1 insertions, 1 deletions
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 <theme> 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=( "$@" ) |
