mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 08:30:54 +02:00
Frank Terbeck: 26104: eliminate WARN_CREATE_GLOBAL warnings
This commit is contained in:
parent
815cf48368
commit
ec48872b7c
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-12-02 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* Frank Terbeck: 26194: Functions/Prompts/promptinit: eliminated
|
||||
WARN_CREATE_GLOBAL warnings.
|
||||
|
||||
2008-12-01 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* (with some help from Peter A. Castro): 26103: configure.ac:
|
||||
|
|
|
@ -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[@]}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue