From: Simon Ruderich Date: Mon, 24 Nov 2008 19:15:03 +0000 (+0100) Subject: Display todo list every hour. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=edc0de24d25d82f87acdf128917ae6afd9ca82b8;p=config%2Fdotfiles.git Display todo list every hour. --- 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.