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

Re: Conditional newline in prompt



2010/12/1 Christoph Wurm <christoph@xxxxxxxx>:
> Hello,
>
> I would like to display the exit code of a command if it is not 0 on a line
> of its own, followed by the prompt on the next line.
>
> Is this possible?

I'm often impressed the way zsh predates user expectations.
In your case, did you try to set the PRINT_EXIT_VALUE option ?
It could avoid prompt intricacy :-)

Regards,
-- 
J u l i e n  J e h a n n e t



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