]> arthur.barton.de Git - ax-zsh.git/commitdiff
icalbuddy, remind: Don't show when "hush login" is active
authorAlexander Barton <alex@barton.de>
Mon, 22 Apr 2019 11:44:22 +0000 (13:44 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 22 Apr 2019 11:44:22 +0000 (13:44 +0200)
plugins/icalbuddy/icalbuddy.zshrc
plugins/remind/remind.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
index 4a5ad506a7eafc57768ead16272f543580235f0b..bece782200de27cd731745fb854f342636c0b8db 100644 (file)
@@ -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