On Mon, May 22, 2023 at 1:49 PM Dridi Boukelmoune <
dridi.boukelmo...@gmail.com> wrote:

> On Mon, May 22, 2023 at 3:50 AM Jens-Ulrik Petersen <peter...@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
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to