zsh-workers
 help / color / mirror / code / Atom feed
From: "Jérémie Roquet" <arkanosis@gmail.com>
To: zsh-workers@zsh.org
Cc: Pascal Wittmann <PascalWittmann@gmx.net>
Subject: Re: Is there some postexec function?
Date: Wed, 6 Jul 2011 17:48:24 +0200	[thread overview]
Message-ID: <CAFOazAMp0z0hjW67DW_M966QF9vKOaTtPNbv_P5BvWo+CKxk-Q@mail.gmail.com> (raw)
In-Reply-To: <4E1481BF.3060008@gmx.net>

Hi,

2011/7/6 Pascal Wittmann <PascalWittmann@gmx.net>:
> 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,

-- 
Jérémie


  reply	other threads:[~2011-07-06 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 15:39 Pascal Wittmann
2011-07-06 15:48 ` Jérémie Roquet [this message]
2011-07-06 17:01 ` ZyX
2011-07-06 20:07 ` Bart Schaefer
2011-07-06 20:28   ` Pascal Wittmann
2011-07-07  3:27     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFOazAMp0z0hjW67DW_M966QF9vKOaTtPNbv_P5BvWo+CKxk-Q@mail.gmail.com \
    --to=arkanosis@gmail.com \
    --cc=PascalWittmann@gmx.net \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).