Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on When did I run that command? Update your Bash prompt with the command start time. Parent comment
Instead, this seems to work:
TRAPDEBUG() { case "$WIDGET" in zle-line-finish) zle reset-prompt ;; *) ;; esac }
This updates the prompt after "enter" is pressed, but before the command is executed.
There are no comments on this comment yet.
Instead, this seems to work:
(I don't know if further cases will be required.)This updates the prompt after "enter" is pressed, but before the command is executed.