Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is there some postexec function?



Hi,

2011/7/6 Pascal Wittmann <PascalWittmann@xxxxxxx>:
> 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



Messages sorted by: Reverse Date, Date, Thread, Author