app-shells/bash: bashrc: simplify/unify TERM checking slightly
authorMike Frysinger <vapier@gentoo.org>
Tue, 2 Feb 2016 20:21:30 +0000 (15:21 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 3 Feb 2016 18:51:41 +0000 (13:51 -0500)
We've got two cases that check TERM with many common entries,
so make the leading parts look the same.

app-shells/bash/files/bashrc

index c9bd88e8586815b52e402ba1b623141534126ac1..f3618fc647c309edb316c05364716f67bc5fc5c5 100644 (file)
@@ -38,7 +38,7 @@ shopt -s histappend
 
 # Change the window title of X terminals 
 case ${TERM} in
-       xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
+       [aEkx]term*|rxvt*|gnome*|konsole*|interix)
                PS1='\[\033]0;\u@\h:\w\007\]'
                ;;
        screen*)
@@ -53,7 +53,7 @@ use_color=false
 #BSD#@# BSD doesn't typically come with dircolors so we need
 #BSD#@# to hardcode some terminals in here.
 #BSD#@case ${TERM} in
-#BSD#@ xterm*|rxvt*|Eterm|aterm|kterm|gnome*|screen|cons25) use_color=true;;
+#BSD#@ [aEkx]term*|rxvt*|gnome*|konsole*|screen|cons25) use_color=true;;
 #BSD#@esac
 
 # Set colorful PS1 only on colorful terminals.