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

Re: precmd, preexec, and supplied prompt themes



On Oct 31,  7:49am, Bart Schaefer wrote:
}
} Even with -R, options "describing the interactive environment" are
} not supposed to be reset, and without -L "only those options likely

That should say "without -R" not -L.

In any case it appears to be OK to remove that one "emulate".

--- ../zsh-forge/current/Functions/Prompts/promptinit   2007-10-14
09:32:27.000000000 -0700
+++ Functions/Prompts/promptinit        2007-10-31 08:07:48.000000000 -0700
@@ -166,13 +166,12 @@
 }
 
 prompt () {
-  emulate -L zsh
   local prompt_opts
   
   set_prompt "$@"
  
   (( $#prompt_opts )) &&
       setopt noprompt{bang,cr,percent,subst} prompt${^prompt_opts[@]}
 
   true
 }



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