On Wed, Jan 24, 2018 at 2:23 AM, Daniel Colascione <dan...@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.)