Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BGZq7
on Jan 8, 2019
|
parent
|
context
|
favorite
| on:
Bash 5.0 released
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: