Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: precmd reserved names
- X-seq: zsh-workers 26375
- From: Peter Stephenson <pws@xxxxxxx>
- To: tek@xxxxxxxxxxxx
- Subject: Re: precmd reserved names
- Date: Tue, 20 Jan 2009 12:21:02 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <200901201308.14694.tek@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200901142124.14881.tek@xxxxxxxxxxxx> <200901181423.39539.tek@xxxxxxxxxxxx> <20090119094309.599c3ea4@news01> <200901201308.14694.tek@xxxxxxxxxxxx>
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