From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10440 invoked from network); 3 Jul 2005 23:35:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Jul 2005 23:35:28 -0000 Received: (qmail 5613 invoked from network); 3 Jul 2005 23:35:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Jul 2005 23:35:22 -0000 Received: (qmail 21854 invoked by alias); 3 Jul 2005 23:35:16 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9015 Received: (qmail 21845 invoked from network); 3 Jul 2005 23:35:16 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Jul 2005 23:35:16 -0000 Received: (qmail 4616 invoked from network); 3 Jul 2005 23:35:16 -0000 Received: from mxfep01.bredband.com (195.54.107.70) by a.mx.sunsite.dk with SMTP; 3 Jul 2005 23:35:11 -0000 Received: from puritan.pnetwork ([213.112.43.228] [213.112.43.228]) by mxfep01.bredband.com with ESMTP id <20050703233511.MLFZ24612.mxfep01.bredband.com@puritan.pnetwork> for ; Mon, 4 Jul 2005 01:35:11 +0200 Received: by puritan.pnetwork (Postfix, from userid 1000) id D2516ADFEA; Mon, 4 Jul 2005 01:35:11 +0200 (CEST) Date: Mon, 4 Jul 2005 01:35:11 +0200 From: Nikolai Weibull To: zsh-users Subject: Re: reinventing print_exit_value Message-ID: <20050703233511.GC5083@puritan.pnetwork> Mail-Followup-To: zsh-users References: <200507032356.17308.cht@chello.at> <20050703223209.GA5083@puritan.pnetwork> <200507040104.41345.cht@chello.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200507040104.41345.cht@chello.at> User-Agent: Mutt/1.5.8i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Christian Taylor wrote: > I know, I tried it both in the left and the right prompt, but for some reason > I just didn't like it. A PRINT_EXIT_VALUE-style output on an extra line suits > me more. You know that a prompt can be more than one line, right? Use $prompt_newline with the prompt module. You can easily put the exit status above or below the rest of the prompt, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}