]> arthur.barton.de Git - ax-zsh.git/commitdiff
remind: Don't show error message when there is no "remind" file
authorAlexander Barton <alex@barton.de>
Tue, 28 May 2019 15:16:49 +0000 (17:16 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 28 May 2019 15:16:49 +0000 (17:16 +0200)
plugins/remind/remind.zshrc

index bece782200de27cd731745fb854f342636c0b8db..05ee67628273a04fab7891347491d98a0c199c1f 100644 (file)
@@ -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