From 4514b75089276953237fb12fac1b371246cd19ee Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Nov 2016 10:43:38 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- bash/bashrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index ff29e3e..5d09d69 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -53,8 +53,9 @@ esac # Set colorful PS1 only on colorful terminals. # dircolors --print-database uses its own built-in database # instead of using /etc/DIR_COLORS. Try to use the external file -# first to take advantage of user additions. Use internal bash -# globbing instead of external grep binary. +# first to take advantage of user additions. +# We run dircolors directly due to its changes in file syntax and +# terminal name patching. use_color=false safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM match_lhs="" @@ -90,9 +91,9 @@ if ${use_color} ; then else if [[ ${EUID} == 0 ]] ; then # show root@ when we don't have colors - PS1='\u@\h \W \$ ' + PS1+='\u@\h \W \$ ' else - PS1='\u@\h \w \$ ' + PS1+='\u@\h \w \$ ' fi fi -- 2.39.5