From edc0de24d25d82f87acdf128917ae6afd9ca82b8 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 24 Nov 2008 20:15:03 +0100 Subject: [PATCH] Display todo list every hour. --- zsh/rc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/rc b/zsh/rc index b1cc9d5..93feb7d 100644 --- a/zsh/rc +++ b/zsh/rc @@ -102,6 +102,17 @@ TRAPINT() { return $1 } +# Execute all periodic functions every hour. +PERIOD=3600 +# Display TODOs stored in ~/.todo if this file exists. Run every hour to make +# clear they should be completed ;-). +todo() { + if [[ -f ~/.todo ]]; then + cat ~/.todo | $PAGER + fi +} +add-zsh-hook periodic todo + # Simplify calls to less, automatically redirects all output. alias -g L='2>&1 | less' # Simplify calls to colordiff, output is also piped through less. -- 2.44.2