]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/remind/remind.zshrc
icalbuddy, remind: Don't show when "hush login" is active
[ax-zsh.git] / plugins / remind / remind.zshrc
index 4a5ad506a7eafc57768ead16272f543580235f0b..bece782200de27cd731745fb854f342636c0b8db 100644 (file)
@@ -10,6 +10,9 @@
 # Some handy alias.
 alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind'
 
+# Don't show reminders when ~/.hushlogin exists ...
+[[ -r ~/.hushlogin ]] && 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