News for hackers. Stuff that matters.
Re:Bash 5.0 released by swini on Tuesday January 08, 2019 @02:41AM (#18853972)
You can already do this interactively with PROMPT_COMMAND, e.g.

  PROMPT_COMMAND='date=$(date +%D);time=$(date +%T)'
Re:Bash 5.0 released by BGZq7 on Tuesday January 08, 2019 @01:22PM (#18857942)
Not quite - that is run before your prompt is displayed.

  $ 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.