summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2004-08-08 01:42:18 +0000
committerAron Griffis <agriffis@gentoo.org>2004-08-08 01:42:18 +0000
commite9c24267f5981468d8aae0247ad9ca60c085c2a5 (patch)
tree1229b0aca1cb203f1cdf9693324ee9da79cb86e7 /app-shells/bash
parentTypo in DESCRIPTION, #59717 (diff)
downloadhistorical-e9c24267f5981468d8aae0247ad9ca60c085c2a5.tar.gz
historical-e9c24267f5981468d8aae0247ad9ca60c085c2a5.tar.bz2
historical-e9c24267f5981468d8aae0247ad9ca60c085c2a5.zip
Restore red prompt for root #59678
Diffstat (limited to 'app-shells/bash')
-rw-r--r--app-shells/bash/ChangeLog5
-rw-r--r--app-shells/bash/Manifest22
-rw-r--r--app-shells/bash/files/bashrc15
3 files changed, 27 insertions, 15 deletions
diff --git a/app-shells/bash/ChangeLog b/app-shells/bash/ChangeLog
index c3e16f99bd78..fa9da023a48c 100644
--- a/app-shells/bash/ChangeLog
+++ b/app-shells/bash/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-shells/bash
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.46 2004/08/02 22:30:18 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/ChangeLog,v 1.47 2004/08/08 01:42:18 agriffis Exp $
+
+ 07 Aug 2004; Aron Griffis <agriffis@gentoo.org> files/bashrc:
+ Restore red prompt for root #59678
02 Aug 2004; Aron Griffis <agriffis@gentoo.org>
files/bash-3.0-invisible.patch:
diff --git a/app-shells/bash/Manifest b/app-shells/bash/Manifest
index 19fab3c3a27b..ae30a0da7f08 100644
--- a/app-shells/bash/Manifest
+++ b/app-shells/bash/Manifest
@@ -1,18 +1,18 @@
-MD5 b207615067efbfbebabc9231cbedbc79 ChangeLog 10017
MD5 a3a5f5e1cfbb02d35f055dae074bf237 bash-3.0-r4.ebuild 4119
MD5 9b26b6899167a29ee4e9c1ad0d39b5a1 bash-2.05b-r9.ebuild 2909
+MD5 a6058eb57efddb0a0a2e65a72944c242 ChangeLog 10119
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
MD5 6a2f5ace1a2dd30b1bee55eba1509027 bash-2.05b-r10.ebuild 3041
-MD5 edf95b873162f4548435c379e4998b4e files/bash-2.05b-empty-herestring.patch 836
-MD5 90ba92c981c1d26e45d88ecd23a1fbf5 files/bash-2.05b-multibyte-locale.patch 1897
-MD5 4383b25cd54b24b9f459e338f06d096c files/bash-2.05b-parallel-build.patch 459
+MD5 4a3ebcb995491c2730d156b314cbab0b files/bash-3.0-etc-inputrc.patch 1223
MD5 3b905c7c9341c9009bd68f14c047815e files/bash-2.05b-rbash.patch 804
-MD5 582fb9ed0ca44627978ce6836a5000dc files/config-top.h.diff 487
MD5 694b8b1e47e4743e78ee5f7515f76542 files/bash-3.0-posixtrap.patch 789
-MD5 1894aaae72806c410d851d046d13dd32 files/digest-bash-2.05b-r9 461
-MD5 92f8f2d44177d92edd757366dbd261dc files/bashrc 761
-MD5 1894aaae72806c410d851d046d13dd32 files/digest-bash-2.05b-r10 461
-MD5 28c9d7407d5332c29dddb656a4a1f1ce files/bash-3.0-invisible.patch 705
-MD5 30a9ff1b688e79f59376a47d882f3419 files/digest-bash-3.0-r4 128
-MD5 4a3ebcb995491c2730d156b314cbab0b files/bash-3.0-etc-inputrc.patch 1223
+MD5 02e68c4ef4c10f71de3aa3fd0ffebb64 files/bashrc 959
+MD5 4383b25cd54b24b9f459e338f06d096c files/bash-2.05b-parallel-build.patch 459
+MD5 582fb9ed0ca44627978ce6836a5000dc files/config-top.h.diff 487
MD5 0392b634a7a02302d24ccc4a4b349423 files/bash-3.0-local-array.patch 275
+MD5 30a9ff1b688e79f59376a47d882f3419 files/digest-bash-3.0-r4 128
+MD5 28c9d7407d5332c29dddb656a4a1f1ce files/bash-3.0-invisible.patch 705
+MD5 1894aaae72806c410d851d046d13dd32 files/digest-bash-2.05b-r10 461
+MD5 1894aaae72806c410d851d046d13dd32 files/digest-bash-2.05b-r9 461
+MD5 edf95b873162f4548435c379e4998b4e files/bash-2.05b-empty-herestring.patch 836
+MD5 90ba92c981c1d26e45d88ecd23a1fbf5 files/bash-2.05b-multibyte-locale.patch 1897
diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc
index bb72d3503306..51bec63f8964 100644
--- a/app-shells/bash/files/bashrc
+++ b/app-shells/bash/files/bashrc
@@ -1,5 +1,5 @@
# /etc/bash.bashrc:
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/bashrc,v 1.1 2004/07/22 02:30:30 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/bashrc,v 1.2 2004/08/08 01:42:18 agriffis Exp $
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
@@ -16,8 +16,17 @@ fi
# Set colorful PS1 only on colorful terminals
if dircolors --print-database | grep -Fqx "TERM $TERM"; then
- PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
+ if [[ $EUID == 0 ]]; then
+ PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
+ else
+ PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
+ fi
else
- PS1='\u@\h \w \$ '
+ if [[ $EUID == 0 ]]; then
+ # show root@ when we don't have colors
+ PS1='\u@\h \W \$ '
+ else
+ PS1='\u@\h \w \$ '
+ fi
fi
export PS1