From: Frank Brehm Date: Mon, 8 Jan 2018 14:33:06 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=a85be926353c2d0ecd0e3af086c7caa01339baa8;p=config%2Fberta%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- 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