Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Does zsh have equivalent to $PROMPT_COMMAND
- X-seq: zsh-users 840
- From: Steve <steve@xxxxxxxxxx>
- To: Tom Kirkpatrick <tomk@xxxxxxx>
- Subject: Re: Does zsh have equivalent to $PROMPT_COMMAND
- Date: Wed, 23 Apr 1997 18:07:58 -0700
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: Your message of "Wed, 23 Apr 1997 15:59:08 PDT." <Pine.SUN.3.95.970423155420.756A-100000@xxxxxxxxxxxxxx>
> The only feature of bash i miss in zsh is the variable
> $PROMPT_COMMAND if set in .bashrc everytime you login for the entire
> session the command defined as the variable, is executed before each
> prompt.
Zsh does not have a $PROMPT_COMMAND variable, AFAIK. Instead, you can
define the precmd _function_ which is executed before each prompt.
Other special functions are listed in the zshmisc(1) man page.
Using a function for this is more logical than using a variable, IMHO.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author