Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16263

Re: verbosity of DEBUG trap following edit-and-execute-command

Newsgroups gnu.bash.bug
Date 2020-05-01 22:40 -0700
References <CAGKqTXWmNgoG5yGFrz3ysORDarQZi8ZsKqNS+QDkpuhM6EARNQ@mail.gmail.com> <mailman.20.1585849035.2644.bug-bash@gnu.org>
Message-ID <788e8fd0-2a87-4d58-9f4e-34be0904a3ed@googlegroups.com> (permalink)
Subject Re: verbosity of DEBUG trap following edit-and-execute-command
From ami@fischman.org

Show all headers | View raw


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.

Back to gnu.bash.bug | Previous | NextPrevious in thread | Find similar


Thread

verbosity of DEBUG trap following edit-and-execute-command Ami Fischman <ami@fischman.org> - 2020-04-02 09:50 -0700
  Re: verbosity of DEBUG trap following edit-and-execute-command ami@fischman.org - 2020-05-01 22:40 -0700

csiph-web