From: Alexander Barton Date: Fri, 17 Mar 2017 22:11:04 +0000 (+0100) Subject: icalbuddy, remind: Don't run for "axzshctl check-plugins" X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=3470203306da1beade42ba4176f242b3926ca84f icalbuddy, remind: Don't run for "axzshctl check-plugins" --- diff --git a/plugins/icalbuddy/icalbuddy.zshrc b/plugins/icalbuddy/icalbuddy.zshrc index dcc70c6..72cfdf7 100644 --- a/plugins/icalbuddy/icalbuddy.zshrc +++ b/plugins/icalbuddy/icalbuddy.zshrc @@ -4,6 +4,9 @@ # 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 + # 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 diff --git a/plugins/remind/remind.zshrc b/plugins/remind/remind.zshrc index 9f27534..4a5ad50 100644 --- a/plugins/remind/remind.zshrc +++ b/plugins/remind/remind.zshrc @@ -4,6 +4,9 @@ # Make sure that "remind(1)" is installed. (( $+commands[remind] )) || return 1 +# Don't run this plugin on "check-plugins"! +[[ -z "$AXZSH_PLUGIN_CHECK" ]] || return 0 + # Some handy alias. alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind'