From e650817c5d890dccb75cae6d30cf739191363661 Mon Sep 17 00:00:00 2001 From: ver4a Date: Wed, 16 Apr 2025 16:36:38 +0200 Subject: [PATCH] fix: Force customized prompt to always apply The script was expecting one of two default prompts to be set, so it wouldn't override any custom ones. But the default prompts changed in F42, this patch removes the check these prompts and makes the script always override it. --- etc/profile.d/bash-color-prompt.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/profile.d/bash-color-prompt.sh b/etc/profile.d/bash-color-prompt.sh index b2dc68e..76d6f15 100644 --- a/etc/profile.d/bash-color-prompt.sh +++ b/etc/profile.d/bash-color-prompt.sh @@ -61,8 +61,7 @@ if [ -n "${BASH_VERSION}" -a -z "${bash_prompt_color_disable}" ]; then } # only activate for color terminals and if PS1 unchanged from bash or fedora defaults - if [ '(' "$PS1" = "[\u@\h \W]\\$ " -o "$PS1" = "\\s-\\v\\\$ " ')' \ - -a '(' "${TERM: -5}" = "color" -o "${TERM}" = "linux" ')' \ + if [ '(' "${TERM: -5}" = "color" -o "${TERM}" = "linux" ')' \ -o -n "${bash_prompt_color_force}" ]; then prompt_color "$PROMPT_COLOR" prompt_default_highlight "$PROMPT_HIGHLIGHT"