On Mon, May 22, 2023 at 1:49 PM Dridi Boukelmoune <dridi.boukelmoune@gmail.com> wrote:
On Mon, May 22, 2023 at 3:50 AM Jens-Ulrik Petersen <petersen@redhat.com> wrote:
> For example I could suggest we change the default fedora bash prompt from:
> PS1="[\u@\h \W]\\$ "
> to something like:
> PS1="\[\e[\${PROMPT_COLOR}m\][\u@\h \W]\[\e[0m\]\\$ ".

Maybe make it ${PROMPT_COLOR:-1;32} to have a default value without
polluting the environment?

Thanks for the suggesion

Personally I think that's reasonable: however I was also being cautious in the sense of making it easy for people to opt out of the color prompt.
Also it is not really pollution: PROMPT_COLOUR is actually used for each prompt and in theory it could be changed dynamically (maybe by PROMPT_COMMAND etc, shrug?).
But if there is broad consensus wouldn't mind I guess.

Jens