From a85be926353c2d0ecd0e3af086c7caa01339baa8 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 8 Jan 2018 15:33:06 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- bash/bashrc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index 8984836..7f62e7d 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -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