From 39d6e591a9832dbc2681e9524bc1f8d43b29007e Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Sun, 7 Jan 2018 21:20:26 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- config-archive/etc/bash/bashrc.dist.new | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/config-archive/etc/bash/bashrc.dist.new b/config-archive/etc/bash/bashrc.dist.new index 89848361..7f62e7d0 100644 --- a/config-archive/etc/bash/bashrc.dist.new +++ b/config-archive/etc/bash/bashrc.dist.new @@ -86,7 +86,7 @@ fi if ${use_color} ; then if [[ ${EUID} == 0 ]] ; then - PS1+='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' + 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 @@ -96,12 +96,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 -- 2.39.5