From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12559 invoked from network); 4 Jul 2005 00:10:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Jul 2005 00:10:02 -0000 Received: (qmail 23727 invoked from network); 4 Jul 2005 00:09:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Jul 2005 00:09:53 -0000 Received: (qmail 25956 invoked by alias); 4 Jul 2005 00:09:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9016 Received: (qmail 25946 invoked from network); 4 Jul 2005 00:09:47 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Jul 2005 00:09:47 -0000 Received: (qmail 22701 invoked from network); 4 Jul 2005 00:09:47 -0000 Received: from viefep11-int.chello.at (HELO viefep19-int.chello.at) (213.46.255.27) by a.mx.sunsite.dk with SMTP; 4 Jul 2005 00:09:43 -0000 Received: from Dingo ([213.47.104.218]) by viefep19-int.chello.at (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050704000942.MABH4473.viefep19-int.chello.at@Dingo> for ; Mon, 4 Jul 2005 02:09:42 +0200 From: Christian Taylor To: zsh-users Subject: Re: reinventing print_exit_value Date: Mon, 4 Jul 2005 02:09:14 +0200 User-Agent: KMail/1.8 References: <200507032356.17308.cht@chello.at> <200507040104.41345.cht@chello.at> <20050703233511.GC5083@puritan.pnetwork> In-Reply-To: <20050703233511.GC5083@puritan.pnetwork> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507040209.14406.cht@chello.at> 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 Nikolai Weibull wrote: > 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, Yes, I could also achieve the desired output using a multi-lined prompt, but I would still have to perform the same check using the preexec-function that I mentioned in my original posting. (After just hitting enter, the exit status is not reset, and so it would be displayed a second time.) The behaviour I want (and get, using the preexec-check) is: % false (1) % % Thanks nonetheless, Christian