]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/icalbuddy/icalbuddy.zshrc
icalbuddy, remind: Don't show when "hush login" is active
[ax-zsh.git] / plugins / icalbuddy / icalbuddy.zshrc
index 72cfdf7f8b912eb5197ab526c69f08108b2070d7..390d90fe854d4c694cee17f6725d8dd518af445c 100644 (file)
@@ -7,6 +7,9 @@
 # Don't run this plugin on "check-plugins"!
 [[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 0
 
+# 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