bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: PROMPT_COMMANDS array variable


From: Clark Wang
Subject: Re: Feature request: PROMPT_COMMANDS array variable
Date: Wed, 24 Jan 2018 11:04:40 +0800

On Wed, Jan 24, 2018 at 2:23 AM, Daniel Colascione <dancol@google.com>
wrote:

> Right now, PROMPT_COMMAND gives a shell command to run before displaying
> the prompt. It's common these days to include in one's bash configuration
> numerous packages from different sources that *all* want to run code at
> PROMPT_COMMAND time. Can we add a new PROMPT_COMMANDS array variable that
> stores a list of shell commands to execute? With a PROMPT_COMMANDS
> variable, different packages can independently add their hooks without
> stepping on each other.
>

I would define my own array var and go through it in PROMPT_COMMAND. (My
PROMPT_COMMAND is just a function name.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]