Re: more distinct default bash prompt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 22, 2023 at 1:49 PM Dridi Boukelmoune <dridi.boukelmoune@xxxxxxxxx> wrote:
On Mon, May 22, 2023 at 3:50 AM Jens-Ulrik Petersen <petersen@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux