Author: alexander
Date: 2005-05-17 08:45:43 -0600 (Tue, 17 May 2005)
New Revision: 191
Modified:
trunk/etc/bashrc
Log:
Use locale-specific format for date and time in bash prompt.
Modified: trunk/etc/bashrc
===================================================================
--- trunk/etc/bashrc 2005-05-17 14:28:42 UTC (rev 190)
+++ trunk/etc/bashrc 2005-05-17 14:45:43 UTC (rev 191)
@@ -9,10 +9,10 @@
WHITE="\[\033[00m\]"
# Prompt
-if [ `whoami` == "root" ] ; then
- PS1="${BRWHITE}\h:$RED\u | $BRWHITE\@ \d $RED|
$GREEN\w$BRWHITE\n$WHITE\\$ "
+if [ `whoami` = "root" ] ; then
+ PS1="$BRWHITE\h:$RED\u | $BRWHITE\D{%c} $RED|
$GREEN\w$BRWHITE\n$WHITE\\$ "
else
- PS1="$BRWHITE\h:$GREEN\u | $ORANGE\@ $BRWHITE\d $GREEN| \w\n$BRWHITE\\$
$WHITE"
+ PS1="$BRWHITE\h:$GREEN\u | $BRWHITE\D{%c} $GREEN| \w\n$BRWHITE\\$
$WHITE"
fi
export PS1
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page