2

I have found resources on configuring zsh's right prompt (RPROMPT) to be the date and time and this works great.

However the time the prompt renders (after the last command) and the time that I press enter are different (sometimes much later).

It would be useful for measuring elapsed time if, upon hitting enter, the RPROMPT was rewritten to be the exact time I hit enter.

Searching SO and the web I didn't find anything but suspect that I may need to do this using oh my zsh, and/or there's a command zle mentioned here (closest resource I could find):

ZSH: change prompt just before command is run

How would I do this?

0 Answers0