From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 646F758974 for ; Wed, 3 Feb 2016 18:52:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AF3121C04F; Wed, 3 Feb 2016 18:52:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A3A321C040 for ; Wed, 3 Feb 2016 18:52:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7629340A67 for ; Wed, 3 Feb 2016 18:52:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 889778F1 for ; Wed, 3 Feb 2016 18:52:02 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1454525501.0e1f0029e88b91f89b997301d4e58c3a6c4c414a.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/bash/files/bashrc X-VCS-Directories: app-shells/bash/files/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 0e1f0029e88b91f89b997301d4e58c3a6c4c414a X-VCS-Branch: master Date: Wed, 3 Feb 2016 18:52:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 04e5e02f-89b7-4bbd-b5e5-4c6a9dc892da X-Archives-Hash: b080227ccfc19da9e96e60b016b06c7e commit: 0e1f0029e88b91f89b997301d4e58c3a6c4c414a Author: Mike Frysinger gentoo org> AuthorDate: Tue Feb 2 20:21:30 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Feb 3 18:51:41 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e1f0029 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 c9bd88e..f3618fc 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.