Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Constantly updated clock in prompt



I found a way to update the time in my prompt, but it breaks the completion
menu (items in the menu become invisible). I found the solution on the
Internet, so I know other people are looking for the same thing (updated
time in prompt), but I can't believe they all learn to live with the bugs I
have to deal with. Does it happen to anyone else? Is there a way to avoid
it?

I use something like this:
RPROMPT="%{$fg_bold[blue]%}%n@%M, %D %T%{$reset_color%}"
TMOUT=1
TRAPALRM() { zle reset-prompt }

More details here:
http://stackoverflow.com/questions/20231533/constantly-updated-clock-in-zsh-prompt-without-any-drawback


Messages sorted by: Reverse Date, Date, Thread, Author