]> Frank Brehm's Git Trees - config/berta/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Mon, 8 Jan 2018 14:33:06 +0000 (15:33 +0100)
committerFrank Brehm <frank@brehm-online.com>
Mon, 8 Jan 2018 14:33:06 +0000 (15:33 +0100)
bash/bashrc

index 89848361af6a2ceb07a051a5172ffb8ba5a1d122..7f62e7d0e419836c52f9decd055c47b793be29b0 100644 (file)
@@ -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