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.
This commit is contained in:
parent
9ed69ddf96
commit
e650817c5d
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue