From 9b4edaeb7c8a573fcf2c865fe1dd7c16337e0c76 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 20 Dec 2012 17:38:40 +0100 Subject: [PATCH] zsh/rc: Also display fortune every 4 hours. --- zsh/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zsh/rc b/zsh/rc index e2f7f9c..aa195f2 100644 --- a/zsh/rc +++ b/zsh/rc @@ -773,9 +773,12 @@ exec 2>>(while read -r -k -u 0 line; do print -n $'\0'; done &) -# Run reminder and redisplay it every four hours (if it's available). +# Run the following programs every 4 hours. PERIOD=14400 periodic() { + # Display fortunes. + (( $+commands[fortune] )) && fortune -ac + # Display reminders. (( $+commands[rem] )) && [ -f ~/.reminders ] && rem -h } -- 2.44.1