summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-02-02 15:21:30 -0500
committerMike Frysinger <vapier@gentoo.org>2016-02-03 13:51:41 -0500
commit0e1f0029e88b91f89b997301d4e58c3a6c4c414a (patch)
tree61936d28dc768133e420632d56658bd8090ed838
parentemul-linux-x86.eclass: Remove lastrited (removal due 2015-11-24) (diff)
downloadgentoo-0e1f0029e88b91f89b997301d4e58c3a6c4c414a.tar.gz
gentoo-0e1f0029e88b91f89b997301d4e58c3a6c4c414a.tar.bz2
gentoo-0e1f0029e88b91f89b997301d4e58c3a6c4c414a.zip
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.
-rw-r--r--app-shells/bash/files/bashrc4
1 files 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.