From: Simon Ruderich Date: Wed, 17 Oct 2012 19:50:21 +0000 (+0200) Subject: reminders.in: Add remind template file. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e7e9c3e89ec4ffca6cb0f1e8e6ebd46202da39f7;p=config%2Fdotfiles.git reminders.in: Add remind template file. Update setup.sh to copy it to ~/.reminders if it doesn't exist. --- diff --git a/reminders.in b/reminders.in new file mode 100644 index 0000000..43b03bf --- /dev/null +++ b/reminders.in @@ -0,0 +1,52 @@ +# remind reminder file. + +# Copyright (C) 2012 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + + +# FUNCTIONS + +# Todo item. Prevents cluttering the calendar by displaying the entry only +# today. Thanks to http://wiki.43folders.com/index.php/Remind_FAQ (read on +# 2011-06-24). +FSET todo() trigger(realtoday()) + + + +# TODO LIST + +# Header. +REM [todo()] MSG TODO: % + +# REM [todo()] MSG Example todo entry. % + +# Empty line. +REM [todo()] MSG % + + + +# REMINDERS + +# REM 04 April 2012 +10 MSG Example reminder entry. % + + + +# DAEMON REMINDERS + +IF $Daemon > 0 + # REM AT 00:00 MSG Example reminder. +ENDIF + +# vim: ft=remind diff --git a/setup.sh b/setup.sh index 39f706e..5ade6bb 100755 --- a/setup.sh +++ b/setup.sh @@ -170,6 +170,12 @@ fi # Htop overwrites the comments in its configuration file. generate cat htoprc .in +# Copy remindrc template if ~/.reminders doesn't exist yet. +if installed remind && test ! -e "$HOME/.reminders"; then + echo remind: copying template to .reminders + cp reminders.in "$HOME/.reminders" +fi + # Link setup for shells. link shell ~/.shell link bash ~/.bash