Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: postcmd?
- X-seq: zsh-users 2580
- From: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>
- To: zsh users mailing list <zsh-users@xxxxxxxxxxxxxxx>
- Subject: Re: postcmd?
- Date: Wed, 8 Sep 1999 12:49:12 +0200
- Cc: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- In-reply-to: <19990908113013.A20503@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh users mailing list <zsh-users@xxxxxxxxxxxxxxx>, Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990908113013.A20503@xxxxxxxxxxxxxxxxxxxxxxx>
On Wed, Sep 08, 1999 at 11:30:13AM +0100,
Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Is it possible to get code executed after you've hit enter, but
> /before/ any output appears, i.e. is there some sort of parallel of
> precmd? If so, whack me with the relevant bit of the manual that I
> missed. If not, consider this a feature request :-)
That's what the preexec function is for. Try this:
preexec () {
echo "About to execute $1"
}
> Adam
CU,
Thomas
--
Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx
<>< WWW: http://home.pages.de/~jeanluc/
IRC: jeanluc
LCARS --- Linux for Computers on All Real Starships
Messages sorted by:
Reverse Date,
Date,
Thread,
Author