]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Only run rem if ~/.reminders exists.
authorSimon Ruderich <simon@ruderich.org>
Mon, 2 May 2011 02:04:34 +0000 (04:04 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 2 May 2011 02:04:34 +0000 (04:04 +0200)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index a59bf29ae4e745578c7bff55818ff0306bd0e4e3..f38761f5f107c7d97a2ebbf47b51c61f05b55c30 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -649,7 +649,7 @@ done &)
 # Run reminder and redisplay it every four hours (if it's available).
 PERIOD=14400
 periodic() {
-    which rem > /dev/null && rem -h
+    which rem > /dev/null && [ -f ~/.reminders ] && rem -h
 }