From e7e9c3e89ec4ffca6cb0f1e8e6ebd46202da39f7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 17 Oct 2012 21:50:21 +0200 Subject: [PATCH] reminders.in: Add remind template file. Update setup.sh to copy it to ~/.reminders if it doesn't exist. --- reminders.in | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ setup.sh | 6 ++++++ 2 files changed, 58 insertions(+) create mode 100644 reminders.in 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 -- 2.44.1