A small correction to the second patch.
Index: postlfs/config/profile.xml
===================================================================
--- postlfs/config/profile.xml  (revision 6665)
+++ postlfs/config/profile.xml  (working copy)
@@ -141,7 +141,7 @@
 export HISTSIZE=1000
 export HISTIGNORE="&:[bf]g:exit"
 #export PS1="[EMAIL PROTECTED] \w]\\$ "
-export PS1='[EMAIL PROTECTED]:\w\$ '
+PS1='[EMAIL PROTECTED]:\w\$ '
 
 for script in /etc/profile.d/*.sh ; do
         if [ -r $script ] ; then
@@ -395,8 +395,11 @@
 # PS1 Environment Variable for a great case study behind this script
 # addendum.]
 
-#export PS1="[EMAIL PROTECTED] \w]\\$ "
-export PS1='[EMAIL PROTECTED]:\w\$ '
+if [[ ${EUID} == 0 ]] ; then
+        PS1='\e[0;[EMAIL PROTECTED]:\e[0;39m\w\$ '
+else
+        PS1='\e[0;[EMAIL PROTECTED]:\e[0;39m\w\$ '
+fi
 
 # End /etc/bashrc</literal>
 EOF</userinput></screen>
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to