From 0e1f0029e88b91f89b997301d4e58c3a6c4c414a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 2 Feb 2016 15:21:30 -0500 Subject: 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. --- app-shells/bash/files/bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- cgit v1.2.3-65-gdbad