summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-02-17 14:04:08 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-02-17 14:04:08 +0000
commit26d51ffc4dd6c78c43d321df5b41bbd3aecefb69 (patch)
tree1ae4d44f05a2eec8c08ac311d9ca3c8cd547d78f
parent2f23c5d07e087cfeb6066584049a3a34b8adadbb (diff)
downloadresources-master.tar.bz2
Support re-rendering the prompt every 5 secondsHEADmaster
-rw-r--r--zsh/rc.d/40-prompt8
1 files changed, 8 insertions, 0 deletions
diff --git a/zsh/rc.d/40-prompt b/zsh/rc.d/40-prompt
index d3519ee..e7907c3 100644
--- a/zsh/rc.d/40-prompt
+++ b/zsh/rc.d/40-prompt
@@ -488,3 +488,11 @@ if [ "x$debian_chroot" != "x" ]; then
PS1="%(5V.${_SUDO_ALLOWED}.${_SUDO_RESET})%m${_SUDO_RESET}/$debian_chroot${_SHELLDEPTH}%(1V.${_VCS_PROMPT}.)%(6V.(%6v).)%# "
fi
+# Finally set up to refresh the prompt every 5s or so
+
+TRAPALRM () {
+ precmd
+ zle reset-prompt
+}
+
+TMOUT=5