diff --git a/bash-color-prompt.sh b/bash-color-prompt.sh index 492e72a..826da4e 100644 --- a/bash-color-prompt.sh +++ b/bash-color-prompt.sh @@ -4,7 +4,7 @@ # PROMPT_DIRTRIM=3 # only set 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" -o -n "${prompt_color_force}" ]; then +if [ '(' "$PS1" = "[\u@\h \W]\\$ " -o "$PS1" = "\\s-\\v\\\$ " ')' -a '(' "${TERM: -5}" = "color" -o "${TERM}" = "linux" ')' -o -n "${bash_prompt_color_force}" ]; then PROMPT_COLOR="${PROMPT_COLOR:-32}" PROMPT_USERHOST="${PROMPT_USERHOST:-\u@\h}"