From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19860 invoked from network); 28 Sep 2005 01:04:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Sep 2005 01:04:33 -0000 Received: (qmail 5869 invoked from network); 28 Sep 2005 01:04:26 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Sep 2005 01:04:26 -0000 Received: (qmail 29758 invoked by alias); 28 Sep 2005 01:04:18 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9451 Received: (qmail 29748 invoked from network); 28 Sep 2005 01:04:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Sep 2005 01:04:17 -0000 Received: (qmail 4756 invoked from network); 28 Sep 2005 01:04:17 -0000 Received: from zproxy.gmail.com (64.233.162.193) by a.mx.sunsite.dk with SMTP; 28 Sep 2005 01:04:14 -0000 Received: by zproxy.gmail.com with SMTP id i11so354110nzi for ; Tue, 27 Sep 2005 18:04:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ds7UAsuW2KD9rN1Qc1pwzqEMMOejehCKLigf1Y2EcLwO6h0aOkUADyMAP0yz2Dnb2/n3vw5XbU63wMTuusE6DLdg1tqgwEKRVVR/cyt+9msS3TyBaFxYOy+Hgjv3BrqoRrMapMXZwvlFkEXvJg7EcFFcMbfpgtfoAOFQuWL5oNM= Received: by 10.54.18.54 with SMTP id 54mr330054wrr; Tue, 27 Sep 2005 18:04:13 -0700 (PDT) Received: by 10.54.121.7 with HTTP; Tue, 27 Sep 2005 18:04:13 -0700 (PDT) Message-ID: <48803072050927180413d3aa5@mail.gmail.com> Date: Tue, 27 Sep 2005 18:04:13 -0700 From: John Reese Reply-To: John Reese To: Zsh Users Subject: Re: Arithmetic expression and TRY_BLOCK_ERROR In-Reply-To: <20050928004821.GJ11933@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050927234153.GB988@DervishD> <4880307205092717115fbb352a@mail.gmail.com> <20050928004821.GJ11933@localhost.localdomain> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.4 2005/9/27, Will Maier : > On Tue, Sep 27, 2005 at 05:11:28PM -0700, John Reese wrote: > [snip] > > ofb:1% thok=3D0 1= 7:08 ofb:~ > > Would you mind sharing the code in you .zshrc that generates that > attractive, spartan prompt? > RPS1=3D'%B%T %(0?,,<%?> )%m:%~%b' PS1=3D"%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.