diff --git a/config/functions b/config/functions index c36d1ac633..de993467ef 100644 --- a/config/functions +++ b/config/functions @@ -69,10 +69,14 @@ print_color() { # "standard" color determined by an indirect name (CLR_ERROR etc.) # # If ${!clr_name} doesn't exist then assume it's a standard color. + # If ${!clr_name} does exist then check it's not a custom color mapping. + # Custom color mappings can be configured in options files. # clr_actual="${!clr_name}" - if [ -z "${clr_actual}" ]; then + if [ -n "${clr_actual}" ]; then + clr_actual="${!clr_actual}" + else case "${clr_name}" in CLR_ERROR) clr_actual="${boldred}";; CLR_WARNING) clr_actual="${boldred}";;