app-shells/bash: bashrc: enable colors for all TERMS that end in "color"
authorMike Frysinger <vapier@gentoo.org>
Tue, 2 Feb 2016 20:24:44 +0000 (15:24 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 3 Feb 2016 18:51:41 +0000 (13:51 -0500)
A bunch of terms end in values like "-256color" and "-color" to indicate
the variant that supports color.  Match all of those in the fallback case.

app-shells/bash/files/bashrc

index 87a55629f6951694696d825b37d1f28566d32ef6..ed46b7d7e38ce4ff2176fdf2b5a57887cf4c0dff 100644 (file)
@@ -77,7 +77,7 @@ else
        # Some systems (e.g. BSD & embedded) don't typically come with
        # dircolors so we need to hardcode some terminals in here.
        case ${TERM} in
-       [aEkx]term*|rxvt*|gnome*|konsole*|screen|cons25) use_color=true;;
+       [aEkx]term*|rxvt*|gnome*|konsole*|screen|cons25|*color) use_color=true;;
        esac
 fi