amoloney | 2026-06-30 17:35:45 UTC | #1 # Bash Color Prompt 1.0 **This is a *proposed* Change for Fedora Linux.** This document represents a *proposed* Change. As part of the [Changes process](https://docs.fedoraproject.org/en-US/program_management/changes_policy/), proposals are publicly announced in order to receive community feedback. This proposal will only be implemented if approved by the Fedora Engineering Steering Committee. [Wiki](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0) [Announced](https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/thread/O34LZKROBBZM5EDVTOD52NZKN6FQUMFU/) ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Summary) Summary `bash-color-prompt` (BCP) version 1.0 is a rewrite of the [Changes/Color_Bash_Prompt](https://fedoraproject.org/wiki/Changes/Color_Bash_Prompt) (introduced in Fedora 39) with a new cleaner simple design, which leans on bash `PROMPT_COMMAND` for updating dynamic prompts. The default system prompt (still green) is much simpler now and there is only one predefined function, which enables optional customization. ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Owner) Owner * Name: [Jens Petersen](https://fedoraproject.org/wiki/User:Petersen) * Email: ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Detailed_Description) Detailed Description This is a major update of the current bash-color-prompt package with a cleaner more declarative "builder pattern"-style approach, which makes it much easier for users to create their own highly customizable bash prompts just by sequencing various helper functions. Users can enable customization by add `bcp_setup` to their `~/.bashrc`, which sets up `PROMPT_COMMAND` for dynamic prompts by appending the `_bcp_build_prompt` function. Users can then define `bcp_layout()` to create a custom prompt if they so wish, with features like: timestamps, git branch, last command duration/exitcode, shell level, container prefix, etc. ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Feedback) Feedback ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Benefit_to_Fedora) Benefit to Fedora Shell prompts are an important part of a terminal shell and this change will improve Fedora's Bash prompt user experience. ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Scope) Scope * Proposal owners: * (optional) Rename the source package to `bash-color-prompt` (instead of `shell-color-prompt`) - less confusing for users * submit a package review. * Build new version * Document how to configure * Fix issues from feedback and improve the experience. * Other developers: N/A * Release engineering: [#Releng issue number](https://forge.fedoraproject.org/releng/tickets/issues) * Policies and guidelines: N/A (not needed for this Change) * Trademark approval: N/A (not needed for this Change) * Alignment with the Fedora Strategy: ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Upgrade/compatibility_impact) Upgrade/compatibility impact * Users who just use the default bash-color-prompt system configuration should not notice any difference nor not need to change anything. * Simple user configs using `PROMPT_COLOR` and `PROMPT_DIR_COLOR` for changing the default color prompt will continue to work, but more complex custom bash-color-prompt's will need to be reworked. * The new version makes creating custom prompts considerable easier, more flexible, and easily extensible. * There is no change to the default color prompt. ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#How_To_Test) How To Test Alpha version can be tested today from this copr repo: (which I have been running locally since January.) More detailed instructions will come here. See also: * [an example custom config](https://github.com/juhp/bash-color-prompt/blob/main/example.bashrc.sh) * https://github.com/juhp/bash-color-prompt ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#User_Experience) User Experience Users who are happy with the default (green) prompt do not need to do anything. The opting out or disabling experience is unchanged. Users will be able to create arbitrary custom bash prompts much more easily than with the more rigid older bash-color-prompt. ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Dependencies) Dependencies N/A ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Contingency_Plan) Contingency Plan * Contingency mechanism: * owner to revert bash-color-prompt to the current old version from F44 * Contingency deadline: Beta freeze * Blocks release? No ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Documentation) Documentation The main documentation will be the README, which will be further flexed out by the code completion. ## [🔗](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0#Release_Notes) Release Notes ------------------------- system | 2026-06-30 17:31:12 UTC | #2 How do you feel about the proposal as written? ---------------------------------------------- [poll type=regular results=always chartType=bar] * Strongly in favor * In favor, with reservations * Neutral * Opposed, but could be convinced * Strongly opposed [/poll] If you are in favor but have reservations, or are opposed but something could change your mind, please explain in a reply. We want everyone to be heard, but many posts repeating the same thing actually makes that harder. If you have something new to say, please say it. If, instead, you find someone has already covered what you’d like to express, please simply give that post a :heart: instead of reiterating. You can even do this by email, by replying with the heart emoji or just “+1”. This will make long topics easier to follow. **Please note that this is an advisory "straw poll" meant to gauge sentiment. It isn't a vote or a scientific survey.** See https://discussion.fedoraproject.org/t/about-the-change-proposals-category/82650 for more about the Change Process and moderation policy. ------------------------- petersen | 2026-07-01 14:40:05 UTC | #3 Btw I recommend reading the actual [change page](https://fedoraproject.org/wiki/Changes/BashColorPrompt_1.0) which is more up-to-date and detailed now. *edit: also I have updated the copr repo to v0.95.3* ------------------------- zbyszek | 2026-07-01 20:08:21 UTC | #4 One thing which I'm always missing from the default Fedora install is having out-of-the-box integration for git status in the prompt. IMO, any real work with git requires the prompt to be configured. Ubuntu for example configures the default prompt to show basic git repo status. I never understood why Fedora doesn't. Can we make that happen? ------------------------- petersen | 2026-07-02 13:38:02 UTC | #5 Yes it is possible: I agree it makes sense - I think it would be popular. One of my team members was asking the same yesterday. :-) Until now I was taking a very conservative stance with bash-color-prompt of zero external processes by default, but maybe we can make an exception for git - it is too useful. Probably providing an easy way to opt out would be good though. Let me think a little more since I was actually pondering to make the PS1 prompt a completely static string by default now even - well maybe it should be for root at least anyway. Then I can revise the proposal slightly to include this if there is consensus. It is mostly a trivial change: the git status function is already [there](https://github.com/juhp/bash-color-prompt/blob/6233ddb236dcd244146107151e15aa955f428da8/bash-color-prompt.sh#L71) (though as a default feature it should probably be slightly simplified). ------------------------- x3mboy | 2026-07-02 13:45:46 UTC | #6 Installation instructions on the copr page didn't work: ![image|690x267](upload://qkG07IYZboRBgNr76PUjlfETUQ9.jpeg) I had to: ```bash source /etc/profile.d/bash-color-prompt.sh ``` To have the colored prompt (and figure it out where the file was) Also, the link to the "example file" is broken ------------------------- petersen | 2026-07-02 13:54:25 UTC | #7 I think you need to start a fresh (login) shell (or terminal): otherwise yes, you can source `/usr/share/bash-color-prompt/bcp.sh`. Also like current bash-color-prompt it is only setup by default if you haven't modified PS1. The activation logic is unchanged. Currently this new version will only be for Rawhide/F45. ------------------------- x3mboy | 2026-07-02 13:58:44 UTC | #8 I've tested it a little bit and it looks nice to be a default prompt. I'm still 100% in favor (even when I use zsh as my primary shell) ------------------------- amoloney | 2026-07-14 11:16:09 UTC | #9 This change proposal has now been submitted to FESCo with ticket [#3639](https://forge.fedoraproject.org/fesco/tickets/issues/3639) for voting. To find out more, please visit our [Changes Policy](https://docs.fedoraproject.org/en-US/program_management/changes_policy) documentation. -------------------------