On Thu, 4 Aug 2022, Christian Weisgerber wrote:
> Damien Miller:
>
> > bash has a PROMPT_COMMAND that allows a command to be executed before
> > each PS1 prompt is displayed. I've found this useful on occasion, so
> > this is the same thing for ksh(1).
>
> PS1 is evaluated each time the prompt
Damien Miller:
> bash has a PROMPT_COMMAND that allows a command to be executed before
> each PS1 prompt is displayed. I've found this useful on occasion, so
> this is the same thing for ksh(1).
PS1 is evaluated each time the prompt is displayed. You can put a
command in $() in there.
Hi,
bash has a PROMPT_COMMAND that allows a command to be executed before
each PS1 prompt is displayed. I've found this useful on occasion, so
this is the same thing for ksh(1).
In particular, this allows PROMPT_COMMAND to be set to a user-defined
shell function that can modify PS1, though it