* PATCH: fix promptinit warnings due to warncreateglobal
@ 2008-12-01 22:12 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2008-12-01 22:12 UTC (permalink / raw)
To: zsh workers
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[@]}"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-01 22:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-01 22:12 PATCH: fix promptinit warnings due to warncreateglobal Frank Terbeck
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).