current time at bash prompt?

From: Thomison, Lee <ThomisonL@ci.anchorage.ak.us>
Date: Wed Oct 06 2004 - 11:59:54 AKDT

Is there a way to display the time at the prompt? I've tried:

PS1=3D"`hostname`@`date '+%H:%M:%S'$ `

But as you may have guessed, that displayed the time when PS1 was set,
that is, what time the user logged in.

Thanks!
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Oct 6 11:59:58 2004

This archive was generated by hypermail 2.1.8 : Wed Oct 06 2004 - 11:59:58 AKDT