(→Scope) |
|||
Line 64: | Line 64: | ||
== Scope == | == Scope == | ||
* Proposal owners: | * Proposal owners: | ||
** update the default PS1 to a simple essentially monochromatic prompt | ** update the default bash PS1 to a simple essentially monochromatic prompt (restricted to interactive color terminals). | ||
* Other developers: <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | * Other developers: <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> |
Revision as of 19:05, 27 June 2023
Color Bash Prompt
Summary
Introduce a default colored prompt for Fedora's default shell: bash.
Owner
- Name: Jens Petersen
- Email: <petersen@redhat.com>
Current status
- Targeted release: Fedora Linux 39
- Last updated: 2023-06-27
- [<will be assigned by the Wrangler> devel thread]
- FESCo issue: <will be assigned by the Wrangler>
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
For a long time the Fedora default shell prompt has been monochrome, which makes it difficult to find shell prompt commands between command outputs when scrolling through terminal shell output. This Change introduces a simple default colored shell prompt, which users can also easily theme themselves.
screenshot of color bash prompt in gnome-terminal
Feedback
Initial devel list discussion thread
There seems to be a desire to have a colored prompt like other popular distros, which tend to use green commonly, 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 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).
- Other developers:
- Release engineering: #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 `PROMPT_COLOR='1;33', etc
A proof of concept can be tested today in https://copr.fedorainfracloud.org/coprs/petersen/bash-color-prompt/ (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 customize the prompt coloring in real-time as they desire.
Dependencies
The bash and setup package maintainers will be consulted on the preferred implementation file location.
Contingency Plan
- Contingency mechanism: (What to do? Who will do it?) Change owner will revert PS1 back to monochrome prompt
- Contingency deadline: Beta freeze
- Blocks release? Yes
Documentation
N/A (not a System Wide Change)
Release Notes
The default shell prompt is now in a distinct color for increased clarity and the theme can be customized.