commit:     f0ad1ef0c4826494a4c8bd00fefd4d55931359fc
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  4 23:47:58 2018 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Thu Jan  4 23:48:15 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ad1ef0

app-shells/bash: Remove redundant code in bashrc, bug #625304

Closes: https://bugs.gentoo.org/625304
Package-Manager: Portage-2.3.14, Repoman-2.3.6

 app-shells/bash/files/bashrc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc
index 03694691d4a..8d9c29738b6 100644
--- a/app-shells/bash/files/bashrc
+++ b/app-shells/bash/files/bashrc
@@ -97,12 +97,8 @@ if ${use_color} ; then
        alias egrep='egrep --colour=auto'
        alias fgrep='fgrep --colour=auto'
 else
-       if [[ ${EUID} == 0 ]] ; then
-               # show root@ when we don't have colors
-               PS1+='\u@\h \w \$ '
-       else
-               PS1+='\u@\h \w \$ '
-       fi
+       # show root@ when we don't have colors
+       PS1+='\u@\h \w \$ '
 fi
 
 for sh in /etc/bash/bashrc.d/* ; do

Reply via email to