Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: fix promptinit warnings due to warncreateglobal



I just realized, I had a local version of 'prompinit' in my setup.
Turns out I added/moved a few typesets in order to get rid of a bunch
of warnings due to warncreateglobal.

This patch includes these fixes (plus one removed space on a line
that's empty otherwise).

Regards, Frank


Index: Functions/Prompts/promptinit
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Prompts/promptinit,v
retrieving revision 1.10
diff -u -r1.10 promptinit
--- Functions/Prompts/promptinit	10 Oct 2008 09:53:48 -0000	1.10
+++ Functions/Prompts/promptinit	1 Dec 2008 22:06:35 -0000
@@ -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 @@
   local prompt_opts
 
   set_prompt "$@"
- 
+
   (( $#prompt_opts )) &&
       setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}"
 



Messages sorted by: Reverse Date, Date, Thread, Author