From 7d056e637600c5d49c96111b49b474e48d6837cd Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 28 May 2019 17:16:49 +0200 Subject: [PATCH] remind: Don't show error message when there is no "remind" file --- plugins/remind/remind.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/remind/remind.zshrc b/plugins/remind/remind.zshrc index bece782..05ee676 100644 --- a/plugins/remind/remind.zshrc +++ b/plugins/remind/remind.zshrc @@ -13,6 +13,9 @@ alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind' # Don't show reminders when ~/.hushlogin exists ... [[ -r ~/.hushlogin ]] && return 0 +# Is there a file with reminders? +[[ -r ~/.remind ]] || return 0 + # Check if reminders have been shown during last 60 minutes, and if so, # don't show them now but return. [[ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]] || return 0 -- 2.39.2