From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15931 invoked by alias); 6 Jul 2011 15:38:49 -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: 29532 Received: (qmail 5102 invoked from network); 6 Jul 2011 15:38:36 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.net designates 213.165.64.23 as permitted sender) X-Authenticated: #28939725 X-Provags-ID: V01U2FsdGVkX1+y0X1zAhWyobZVJx6jEuqLa3xZaf0h2grJfK0ETH Q+O1PpvJr29c3B Message-ID: <4E1481BF.3060008@gmx.net> Date: Wed, 06 Jul 2011 17:39:43 +0200 From: Pascal Wittmann User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110628 Thunderbird/5.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Is there some postexec function? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Hi, 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. I've found some references¹ to such a function, but they didn't worked on my system. I'm using zsh 4.3.12. Thanks for your help, Pascal Wittmann [1] https://gist.github.com/47474