summaryrefslogtreecommitdiff
path: root/Functions/Prompts/prompt_bart_setup
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-11-22 10:19:49 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2015-11-22 10:19:49 -0800
commit14487ff5cc0233acf4ed3398559d975e92d52d51 (patch)
tree063987cc2c743bb5ad95f6dbc6edc23b4a14defb /Functions/Prompts/prompt_bart_setup
parentacbd2ca701ea6b91e3f3a710daa7e32295edc225 (diff)
downloadzsh-14487ff5cc0233acf4ed3398559d975e92d52d51.tar.gz
zsh-14487ff5cc0233acf4ed3398559d975e92d52d51.zip
37192: silence WARN_CREATE_GLOBAL in prompt themes
Diffstat (limited to 'Functions/Prompts/prompt_bart_setup')
-rw-r--r--Functions/Prompts/prompt_bart_setup5
1 files changed, 2 insertions, 3 deletions
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup
index 22c0c0340..cb032de8a 100644
--- a/Functions/Prompts/prompt_bart_setup
+++ b/Functions/Prompts/prompt_bart_setup
@@ -70,8 +70,8 @@ prompt_bart_help () {
print -nP '\n%E'
}
-integer PSCOL=1
-typeset PSCMD=
+integer -g PSCOL=1
+typeset -g PSCMD=
prompt_bart_preexec () {
setopt localoptions noxtrace noshwordsplit noksharrays unset
@@ -106,7 +106,6 @@ prompt_bart_precmd () {
psvar[8]='' # No padding until we compute it
psvar[9]=()
- typeset -g PSCOL
# Reset the truncation widths for upcoming computations
((PSCOL == 1)) || { PSCOL=1 ; prompt_bart_ps1 }
if [[ -o promptcr ]]