]> arthur.barton.de Git - ax-zsh.git/commitdiff
icalbuddy, remind: Don't run for "axzshctl check-plugins"
authorAlexander Barton <alex@barton.de>
Fri, 17 Mar 2017 22:11:04 +0000 (23:11 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 17 Mar 2017 22:11:04 +0000 (23:11 +0100)
plugins/icalbuddy/icalbuddy.zshrc
plugins/remind/remind.zshrc

index dcc70c61f26a7b12f61ceed5d54b2324d53dee6b..72cfdf7f8b912eb5197ab526c69f08108b2070d7 100644 (file)
@@ -4,6 +4,9 @@
 # Make sure that "icalBuddy(1)" is installed.
 (( $+commands[icalBuddy] )) || return 1
 
 # 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
 # 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
index 9f275348e8665b7aa19523b39f446e6b99b278a5..4a5ad506a7eafc57768ead16272f543580235f0b 100644 (file)
@@ -4,6 +4,9 @@
 # Make sure that "remind(1)" is installed.
 (( $+commands[remind] )) || return 1
 
 # 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'
 
 # Some handy alias.
 alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind'