From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2641 invoked by alias); 6 Jul 2011 15:55:27 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29533 Received: (qmail 6747 invoked from network); 6 Jul 2011 15:55:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=lcEXmWeQXwL0SFIucFbQTQu8yXDY3oYyCAHKyf6Yu2c=; b=dfkPWqw0tBRRjI+NtDPl+fzCcFQZzHvEiyzUkyZJIFDLfLWM3Rtyh7YRkvqTCt7ABo hpOyE9YWP7jYlncgj/Wbe5nduDCBbo6bUt7OdTrtMr4aPLTuhS2SDD6CL4LXWTPuZaG5 TFpQHBlxz4+E84LeZWhXECH33hWIvc003GmM8= MIME-Version: 1.0 In-Reply-To: <4E1481BF.3060008@gmx.net> References: <4E1481BF.3060008@gmx.net> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Wed, 6 Jul 2011 17:48:24 +0200 Message-ID: Subject: Re: Is there some postexec function? To: zsh-workers@zsh.org Cc: Pascal Wittmann Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2011/7/6 Pascal Wittmann : > I wonder whether there exists a postexec function, a function that is > called, after a command is executed. I need something like that, because > I'm trying to print (redraw the prompt) the exit code of a program in > the prompt where it was called. precmd is called before the next prompt is drawn, does it the trick? Best regards, --=20 J=C3=A9r=C3=A9mie