about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-12-02 09:33:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-12-02 09:33:56 +0000
commitec48872b7c9a96962c521c5ec1f336366a4d4067 (patch)
tree893ab265d27656e1ce8e4e642adaf31e77b09198 /Functions
parent815cf483683f37c16b0cc9f04916ac0435b423b7 (diff)
downloadzsh-ec48872b7c9a96962c521c5ec1f336366a4d4067.tar.gz
zsh-ec48872b7c9a96962c521c5ec1f336366a4d4067.tar.xz
zsh-ec48872b7c9a96962c521c5ec1f336366a4d4067.zip
Frank Terbeck: 26104: eliminate WARN_CREATE_GLOBAL warnings
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Prompts/promptinit7
1 files changed, 4 insertions, 3 deletions
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[@]}"