]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/icalbuddy/icalbuddy.zshrc
ax.zsh: Refactor "stage initialization" into new axzsh_handle_stage() function
[ax-zsh.git] / plugins / icalbuddy / icalbuddy.zshrc
index dcc70c61f26a7b12f61ceed5d54b2324d53dee6b..390d90fe854d4c694cee17f6725d8dd518af445c 100644 (file)
@@ -4,6 +4,12 @@
 # Make sure that "icalBuddy(1)" is installed.
 (( $+commands[icalBuddy] )) || return 1
 
+# 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