1
0
Fork 0

fix: Force customized prompt to always apply
All checks were successful
/ build-gnome (push) Successful in 17m40s
/ build-kde (push) Successful in 24m27s

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.
This commit is contained in:
ver4a 2025-04-16 16:36:38 +02:00
parent 9ed69ddf96
commit e650817c5d

View file

@ -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 # only activate for color terminals and if PS1 unchanged from bash or fedora defaults
if [ '(' "$PS1" = "[\u@\h \W]\\$ " -o "$PS1" = "\\s-\\v\\\$ " ')' \ if [ '(' "${TERM: -5}" = "color" -o "${TERM}" = "linux" ')' \
-a '(' "${TERM: -5}" = "color" -o "${TERM}" = "linux" ')' \
-o -n "${bash_prompt_color_force}" ]; then -o -n "${bash_prompt_color_force}" ]; then
prompt_color "$PROMPT_COLOR" prompt_color "$PROMPT_COLOR"
prompt_default_highlight "$PROMPT_HIGHLIGHT" prompt_default_highlight "$PROMPT_HIGHLIGHT"