Dne 05. 07. 23 v 11:25 Aoife Moloney napsal(a):
https://fedoraproject.org/wiki/Changes/Color_Bash_Prompt

== Summary ==
Introduce a default colored prompt for Fedora's default shell bash.

== Owner ==

* Name: [[User:Petersen| Jens Petersen]]

* Email: <peter...@redhat.com>


== Detailed Description ==
For a long time the Fedora default shell prompt has been monochrome,
which makes it difficult to find shell prompt commands between long
command outputs when scrolling through terminal shell output.
This Change introduces a simple default colored shell prompt, which
users can also easily theme themselves.

[https://petersen.fedorapeople.org/color-bash-prompt.png screenshot of
color bash prompt in gnome-terminal]

== Feedback ==
Initial 
[https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/B5AJS3FIIPMF3KNWM7HRUNI7ISA2AKBR/#B5AJS3FIIPMF3KNWM7HRUNI7ISA2AKBR
devel list discussion thread]

There seems to be a general desire to have a colored prompt like other
popular distros, which commonly use green


Shouldn't blue be the default for Fedora?

And I think that dark as well as light color schemes should be considered. IOW I appreciate the screenshot attached above, but could you also attach one with the light scheme? Thx a lot.


Vít


  etc, though some concerns
were raised about colorblind users. However given that the original
prompt was black & white, and the new one while colored will still be
essentially monochromatic, it should be less of a problem and users
will easily be able to turn off or change any color introduced.


== Benefit to Fedora ==
Fedora will have a more modern and distinct default shell prompt.

== Scope ==
* Proposal owners:
** update the default bash PS1 to a simple essentially monochromatic
prompt (restricted to interactive color terminals).
** like the old default prompt, no external commands or processes will
be run by PS1 by default

* Other developers: bash and/or setup package maintainers to be
consulted on the preferred implementation file location


* Release engineering: [https://pagure.io/releng/issues #Releng issue number]

* Policies and guidelines: N/A (not needed for this Change)

* Trademark approval: N/A (not needed for this Change)


* Alignment with Community Initiatives:


== Upgrade/compatibility impact ==
No impact for rpm editions, ostree editions may gain the default color
prompt if they include its package.



== How To Test ==
* install Fedora and test the new PS1 prompt in various terminals and scenarios
** desktop default terminals should be expected to render the new prompt well
* try customizing the prompt theme by setting for example
`PROMPT_COLOR='1;33'` (bright/bold yellow), etc

A proof of concept can be tested today with
https://copr.fedorainfracloud.org/coprs/petersen/bash-color-prompt/
([https://copr-dist-git.fedorainfracloud.org/cgit/petersen/bash-color-prompt/bash-color-prompt.git/tree/
source git repo])


== User Experience ==
Fedora users will now benefit from a clear self-colored shell prompt,
which should make the separation between command outputs and shell
prompts much clearer and they can also easily change the prompt
coloring in real-time as they desire.


== Dependencies ==
None


== Contingency Plan ==

* Contingency mechanism: Change owner will revert PS1 back to monochrome prompt
* Contingency deadline: Beta freeze
* Blocks release? Yes


== Documentation ==
[https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters
ANSI color attributes] (Wikipedia)


== Release Notes ==
The default shell prompt is now in a distinct color for increased
clarity and the theme can be customized.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
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