1 |
commit: f0ad1ef0c4826494a4c8bd00fefd4d55931359fc |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 4 23:47:58 2018 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 4 23:48:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ad1ef0 |
7 |
|
8 |
app-shells/bash: Remove redundant code in bashrc, bug #625304 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/625304 |
11 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
12 |
|
13 |
app-shells/bash/files/bashrc | 8 ++------ |
14 |
1 file changed, 2 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc |
17 |
index 03694691d4a..8d9c29738b6 100644 |
18 |
--- a/app-shells/bash/files/bashrc |
19 |
+++ b/app-shells/bash/files/bashrc |
20 |
@@ -97,12 +97,8 @@ if ${use_color} ; then |
21 |
alias egrep='egrep --colour=auto' |
22 |
alias fgrep='fgrep --colour=auto' |
23 |
else |
24 |
- if [[ ${EUID} == 0 ]] ; then |
25 |
- # show root@ when we don't have colors |
26 |
- PS1+='\u@\h \w \$ ' |
27 |
- else |
28 |
- PS1+='\u@\h \w \$ ' |
29 |
- fi |
30 |
+ # show root@ when we don't have colors |
31 |
+ PS1+='\u@\h \w \$ ' |
32 |
fi |
33 |
|
34 |
for sh in /etc/bash/bashrc.d/* ; do |