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

Re: Arithmetic expression and TRY_BLOCK_ERROR



2005/9/27, Will Maier <willmaier@xxxxxxx>:
> On Tue, Sep 27, 2005 at 05:11:28PM -0700, John Reese wrote:
> [snip]
> > ofb:1% thok=0                                                       17:08 ofb:~
>
> Would you mind sharing the code in you .zshrc that generates that
> attractive, spartan prompt?
>

RPS1='%B%T %(0?,,<%?> )%m:%~%b'
PS1="%Bofb${WINDOW:+:$WINDOW}%#%b"

The right prompt displays the status code of the last command if it
was non-zero, and if I'm running inside screen the screen number goes
in the left prompt.



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