=46rom the bash man page (only relevant ones listed):
\d the date in "Weekday Month Date" format (e.g., "Tue =
May
26")
\D{format}
the format is passed to strftime(3) and the result =
is
inserted into the prompt string; an empty format resu=
lts
in a locale-specific time representation. The braces =
are
required
\t the current time in 24-hour HH:MM:SS format
\T the current time in 12-hour HH:MM:SS format
\@ the current time in 12-hour am/pm format
\A the current time in 24-hour HH:MM format
Does that help :)
j----- k-----
On Wednesday 06 October 2004 11:59, Thomison, Lee wrote:
> Is there a way to display the time at the prompt? I've tried:
>
> PS1=3D3D"`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.
=2D-=20
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Oct 6 12:08:20 2004
This archive was generated by hypermail 2.1.8 : Wed Oct 06 2004 - 12:08:20 AKDT