]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@uhu1.uhu-banane.de>
Fri, 11 Nov 2016 09:43:38 +0000 (10:43 +0100)
committerroot <root@uhu1.uhu-banane.de>
Fri, 11 Nov 2016 09:43:38 +0000 (10:43 +0100)
bash/bashrc

index ff29e3ec27f04ca83fccd9cae62db331d7831fd0..5d09d6941e58129c4980b169546c473d80d00220 100644 (file)
@@ -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