Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Files in prompt
- X-seq: zsh-workers 9975
- From: Jaime Medrano <overflow@xxxxxxxxxxxxxxxxxxxxx>
- To: Zefram <zefram@xxxxxxxx>
- Subject: Re: PATCH: Files in prompt
- Date: Fri, 3 Mar 2000 11:21:01 +0100 (CET)
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <E12QofA-0004dU-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: Jaime Medrano <overflow@xxxxxxxxxxxxxxxxxxxxx>
On Fri, 3 Mar 2000, Zefram wrote:
> Jaime Medrano wrote:
> > I' ve developped a patch that allows to include the content of a file
> >inside the prompt. The content is evaluated every time the prompt is
> >displayed so that if the file changes, the prompt also changes.
>
> Does this look anything like the result of having "$(<file)" in the
> prompt (with PROMPT_SUBST set), or "%v" after doing "psvar[1]=$(<file)"
> in precmd?
>
> -zefram
>
Mmm... I think you're right. I knew the second way, but I haven't
heard before about the PROMPT_SUBST option. So, forget this patch.
I should have read the docs twice before sending a patch.
Jaime Medrano Navarro
overflow@xxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author