I use the following in my zshrc file:
RPROMPT="%{$fg_bold[blue]%}%n@%M, %D %T%{$reset_color%}"
TMOUT=1
TRAPALRM() { zle reset-prompt }
It works fine, until I use the completion menu:
zmodload -i zsh/complist
zstyle ':completion:*' menu select
Now, the items in the menu become invisible whenever the prompt refreshes (because of the zle reset-prompt). If that wasn't enough, I also get segfaults when navigating the menu…
So, is there a way to update the time in my prompt without breaking anything? Thank you.