From 0acee783038cd38d42ab1fa1f853bef3faecd463 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 22 Apr 2019 13:44:22 +0200 Subject: [PATCH] icalbuddy, remind: Don't show when "hush login" is active --- plugins/icalbuddy/icalbuddy.zshrc | 3 +++ plugins/remind/remind.zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plugins/icalbuddy/icalbuddy.zshrc b/plugins/icalbuddy/icalbuddy.zshrc index 72cfdf7..390d90f 100644 --- a/plugins/icalbuddy/icalbuddy.zshrc +++ b/plugins/icalbuddy/icalbuddy.zshrc @@ -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 diff --git a/plugins/remind/remind.zshrc b/plugins/remind/remind.zshrc index 4a5ad50..bece782 100644 --- a/plugins/remind/remind.zshrc +++ b/plugins/remind/remind.zshrc @@ -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 -- 2.39.2