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

Re: precmd reserved names



tek wrote:
> Seems, not for me. It also doesn't need to be autoloaded, if it's called
> prompt_foo_precmd_bar, it just isn't executed if it has exactly the
> mentioned name.

Ah, I see.  Old hooks get deleted when the prompt is set up, just before
prompt_*_setup is run.  You need something like:

    add-zsh-hook precmd prompt_bart_precmd

*inside* (or after) prompt_foo_setup.

This did indeed change.  How to add new prompts to the themes was never
a documented interface, only how to use it; the only way to do it has
bene to look at the existing themes.  Feel free to supply documentation
if you think it's lacking.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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