]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Run rem on startup and after every four hours.
authorSimon Ruderich <simon@ruderich.org>
Mon, 8 Nov 2010 20:17:59 +0000 (21:17 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 8 Nov 2010 20:17:59 +0000 (21:17 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index cc4e90a3c7eaaf9ae90bb0dd5e175d8a7fd2f580..bab6a06f7c0db052817aa769a0e8c2955847dcbf 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -634,6 +634,12 @@ if [[ $TERM != dumb && $TERM != linux && -z $STY ]]; then
     fi
 fi
 
+# Run reminder and redisplay it every four hours (if it's available).
+PERIOD=14400
+periodic() {
+    which rem > /dev/null && rem
+}
+
 
 source_debug ". ~/.zsh/rc (done)"