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

Re: PATCH: Files in prompt




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