Bug 2333485 - Using kitty terminal disables /etc/bashrc prompt
Summary: Using kitty terminal disables /etc/bashrc prompt
Keywords:
Status: CLOSED DUPLICATE of bug 2352650
Alias: None
Product: Fedora
Classification: Fedora
Component: shell-color-prompt
Version: 41
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Jens Petersen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-20 11:29 UTC by Celeste
Modified: 2025-04-07 06:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-07 06:11:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Celeste 2024-12-20 11:29:29 UTC
When using the Kitty terminal, the coloured prompt is not enabled, and the default Red Hat prompt is used instead.

Reproducible: Always

Steps to Reproduce:
1.Install Kitty
2.Launch Kitty
Actual Results:  
After launching, the minimal Red Hat prompt is displayed instead of the usual coloured prompt.

Expected Results:  
The coloured prompt should be used, like in other terminals like GNOME terminal and Konsole

The prompt's behaviour seems to be caused by a check that tests if the current `$TERM` value ends with `color`.
However, because Kitty's value is `xterm-kitty`, the coloured prompt is not enabled.

I'm not very knowledgeable of how these systems should work, but I wonder if it would make more sense to query terminfo instead?

Comment 1 Jens Petersen 2025-04-07 06:11:37 UTC
Thanks for reporting this

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


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