by swini · 7y ago · 0 comments
PROMPT_COMMAND='date=$(date +%D);time=$(date +%T)' $ PROMPT_COMMAND='time=$(date +%T)'
$ echo $time;date +%T
12:19:07
12:20:19
Thus it will show the time after your last command returned rather than the current time.