From ec48872b7c9a96962c521c5ec1f336366a4d4067 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 2 Dec 2008 09:33:56 +0000 Subject: Frank Terbeck: 26104: eliminate WARN_CREATE_GLOBAL warnings --- Functions/Prompts/promptinit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Functions/Prompts') diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit index a83414841..fef01d372 100644 --- a/Functions/Prompts/promptinit +++ b/Functions/Prompts/promptinit @@ -6,9 +6,10 @@ ## Type `prompt -h' for help. ## +typeset -gaU prompt_themes +typeset -ga prompt_theme +typeset -g prompt_newline prompt_themes=() -typeset -gU prompt_themes -typeset -g prompt_theme >/dev/null promptinit () { emulate -L zsh @@ -168,7 +169,7 @@ prompt () { local prompt_opts set_prompt "$@" - + (( $#prompt_opts )) && setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}" -- cgit 1.4.1