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: Greg Wooledge
Subject: Re: Feature request: PROMPT_COMMANDS array variable
Date: Mon, 5 Feb 2018 09:05:04 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Sat, Feb 03, 2018 at 02:57:33PM +0100, Egmont Koblinger wrote:
> So the use case is: Someone wants to _add_ something to
> PROMPT_COMMAND. How to do that?

PROMPT_COMMAND+=$'\n''my new stuff'

Or, test whether PROMPT_COMMAND is currently empty, and only
append the newline (or semicolon) if it's non-empty.  But the newline
should work in either case.



reply via email to

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