From: Mike Frysinger Date: Tue, 2 Feb 2016 20:21:30 +0000 (-0500) Subject: app-shells/bash: bashrc: simplify/unify TERM checking slightly X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e1f0029e88b91f89b997301d4e58c3a6c4c414a;p=gentoo.git app-shells/bash: bashrc: simplify/unify TERM checking slightly We've got two cases that check TERM with many common entries, so make the leading parts look the same. --- diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc index c9bd88e85868..f3618fc647c3 100644 --- a/app-shells/bash/files/bashrc +++ b/app-shells/bash/files/bashrc @@ -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.