Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Conditional newline in prompt
- X-seq: zsh-users 15590
- From: Julien Jehannet <julien@xxxxxxxx>
- To: Christoph Wurm <christoph@xxxxxxxx>
- Subject: Re: Conditional newline in prompt
- Date: Thu, 2 Dec 2010 12:07:57 +0100
- Cc: zsh-users@xxxxxxx
- In-reply-to: <4CF6B323.9000607@xxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4CF6B323.9000607@xxxxxxxx>
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