Bug 1474727 - Coloured root terminal prompt
Summary: Coloured root terminal prompt
Keywords:
Status: CLOSED DUPLICATE of bug 1228939
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 26
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Siteshwar Vashisht
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-25 09:26 UTC by Armin Wehrfritz
Modified: 2017-07-25 09:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-25 09:46:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
bash.bashrc openSUSE Leap 42.2 (8.94 KB, text/plain)
2017-07-25 09:26 UTC, Armin Wehrfritz
no flags Details

Description Armin Wehrfritz 2017-07-25 09:26:49 UTC
Created attachment 1304116 [details]
bash.bashrc openSUSE Leap 42.2

This is a feature request for a coloured root terminal prompt.

I work a lot with the command line and find it very useful to have the prompt coloured in red and bold if I am working as root (this happens rarely, but if then the red colour reminds to be careful).

Background:
I recently switch from openSUSE to Fedora 26 and I am overall very happy with the decision. However, this is one of the very few features that I am missing.
I attached the system-wide (i.e. /etc/bash.bashrc) bashrc from openSUSE Leap 42.2, which contains the hacks they apply to get the root prompt in red and bold (see lines 165 ff.).

Comment 1 Armin Wehrfritz 2017-07-25 09:30:11 UTC
Oh, I forgot to add, there has been a rather old SUSE bug report where they discussed the various options on how to get this feature implemented.
Not sure if it is of any value, but here is the link:
https://bugzilla.novell.com/show_bug.cgi?id=144620

Comment 2 Kamil Dudka 2017-07-25 09:32:33 UTC
This is a duplicate of bug #1228939.

Comment 3 Armin Wehrfritz 2017-07-25 09:46:11 UTC
Sorry for the duplicate report.

*** This bug has been marked as a duplicate of bug 1228939 ***


Note You need to log in before you can comment on or make changes to this bug.