r1263 - branches/6.1.1-newmake/etc

Justin R. Knierim lfs at lfs-matrix.net
Thu Dec 8 21:41:59 PST 2005


justin at linuxfromscratch.org wrote:

>Author: justin
>Date: 2005-12-08 22:37:14 -0700 (Thu, 08 Dec 2005)
>New Revision: 1263
>
>Modified:
>   branches/6.1.1-newmake/etc/bashrc
>Log:
>[6.1.1-newmake] Replaced \D with date in PS1 in etc/bashrc.  \D doesn't seem to respect the TZ variable, showing UTC instead.
>  
>
I could be wrong, but in my testing it seems right to me:

[justin at hops Fri Dec  9 05:39:17 2005 ~]$ export TZ=America/Los_Angeles
[justin at hops Fri Dec  9 05:39:26 2005 ~]$ echo $PS1
[\u@\h \D{%c} \w]$
[justin at hops Fri Dec  9 05:39:31 2005 ~]$ date
Thu Dec  8 21:39:36 PST 2005
[justin at hops Fri Dec  9 05:39:36 2005 ~]$ export PS1="[\u@\h \`date 
+%c\` \w]\$ "
[justin at hops Thu Dec  8 21:40:01 2005 ~]$ date
Thu Dec  8 21:40:03 PST 2005
[justin at hops Thu Dec  8 21:40:03 2005 ~]$

Any other suggestions welcome.

Justin



More information about the livecd mailing list