4 ms·
If you're using zsh and have a date like %D{...} in your prompt, set TMOUT=1 and define TRAPALRM to run `zle reset-prompt` and your date will auto-update. Full
by sdegutis 6y ago
If you're using zsh and have a date like %D{...} in your prompt, set TMOUT=1 and define TRAPALRM to run `zle reset-prompt` and your date will auto-update. Full prompt at https://github.com/sdegutis/dotfiles/blob/master/.zshrc#L3-L19 https://github.com/sdegutis/dotfiles/blob/master/.zshrc#L3-L... fwiw.