F39 Change Proposal: Color Bash Prompt (System Wide)

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

 



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: <petersen@xxxxxxxxxx>


== 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@xxxxxxxxxxxxxxxxxxxxxxx/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 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.

-- 
Aoife Moloney

Product Owner

Community Platform Engineering Team

Red Hat EMEA

Communications House

Cork Road

Waterford
_______________________________________________
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