From: Simon Ruderich Date: Tue, 27 Jan 2009 17:20:21 +0000 (+0100) Subject: Don't display TODOs periodically. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=2db0a467f04f780ad21c109ad6531dfacacc853c;p=config%2Fdotfiles.git Don't display TODOs periodically. This was just annoying and didn't make me complete them sooner. --- diff --git a/zsh/rc b/zsh/rc index 2104c4e..73f3f1d 100644 --- a/zsh/rc +++ b/zsh/rc @@ -261,16 +261,12 @@ 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 ;-). +# Display TODOs stored in ~/.todo if this file exists. todo() { if [[ -f ~/.todo ]]; then cat ~/.todo | $PAGER fi } -add-zsh-hook periodic todo # Load rc file for current OS.