X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=93feb7d33f41383e2b8e64b64652e66ee7f6593e;hb=e63d539ffb618d18e67032f43301a0e99f7598be;hp=b1cc9d551cb536342b5ab0b74cdb97e9fabf5943;hpb=c97f749a7c7791032ba52bc5642229ce1db6976d;p=config%2Fdotfiles.git 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.