On Fri, Dec 13, 2019 at 04:50:18PM -0600, David Wright wrote:
> > PS1='\u@\h $(date +"%d %b %Y %H:%M:%S") :\w\$ '
> 
> Could \D{format} not do that?

Oh, good catch.  I've... never used that before. ;-)  I scanned the
PROMPTING section of the man page too quickly and only saw
the \t \T \@ \A parts.

PS1='\u@\h \D{%d %b %Y %H:%M:%S} :\w\$ '

Reply via email to