X-Received: by 2002:a37:a896:: with SMTP id r144mr2348902qke.251.1588398032867; Fri, 01 May 2020 22:40:32 -0700 (PDT) X-Received: by 2002:a0c:e9cc:: with SMTP id q12mr7378538qvo.128.1588398032537; Fri, 01 May 2020 22:40:32 -0700 (PDT) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: gnu.bash.bug Date: Fri, 1 May 2020 22:40:32 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=71.197.179.128; posting-account=Oksg3woAAABWeao6ni8fwjwark44n4u7 NNTP-Posting-Host: 71.197.179.128 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <788e8fd0-2a87-4d58-9f4e-34be0904a3ed@googlegroups.com> Subject: Re: verbosity of DEBUG trap following edit-and-execute-command From: ami@fischman.org Injection-Date: Sat, 02 May 2020 05:40:32 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 6 Xref: csiph.com gnu.bash.bug:16263 On Thursday, April 2, 2020 at 10:37:17 AM UTC-7, Ami Fischman wrote: > [...] for example > when using the DEBUG trap as a way to change colors as demonstrated in > https://nigeltao.github.io/blog/2018/colorful-text.html#shell-prompts For future travelers: an alternative way to achieve the same "change colors" goal is to include the reset code in $PS0, entirely avoiding the need to trap DEBUG.