summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-02-02 15:24:44 -0500
committerMike Frysinger <vapier@gentoo.org>2016-02-03 13:51:41 -0500
commit03ec1b8d7a9ab445352c05cbc5817b80cd3a1640 (patch)
treeccb506d4c72448d6c9eff7dd75cb9db64efa871d
parentapp-shells/bash: bashrc: enable fallback TERM color checking for everyone (diff)
downloadgentoo-03ec1b8d7a9ab445352c05cbc5817b80cd3a1640.tar.gz
gentoo-03ec1b8d7a9ab445352c05cbc5817b80cd3a1640.tar.bz2
gentoo-03ec1b8d7a9ab445352c05cbc5817b80cd3a1640.zip
app-shells/bash: bashrc: enable colors for all TERMS that end in "color"
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.
-rw-r--r--app-shells/bash/files/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc
index 87a55629f69..ed46b7d7e38 100644
--- a/app-shells/bash/files/bashrc
+++ b/app-shells/bash/files/bashrc
@@ -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