X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=plugins%2Fremind%2Fremind.zshrc;fp=plugins%2Fremind%2Fremind.zshrc;h=9f275348e8665b7aa19523b39f446e6b99b278a5;hb=2ee7221861b0e6f1f5f45f7ad7dd2e8d606faafe;hp=0000000000000000000000000000000000000000;hpb=21f42cba195a58f794eef63f02f42a7ac6e4cecb;p=ax-zsh.git diff --git a/plugins/remind/remind.zshrc b/plugins/remind/remind.zshrc new file mode 100644 index 0000000..9f27534 --- /dev/null +++ b/plugins/remind/remind.zshrc @@ -0,0 +1,18 @@ +# AX-ZSH: Alex' Modular ZSH Configuration +# remind.zshrc: Show reminders of remind(1). + +# Make sure that "remind(1)" is installed. +(( $+commands[remind] )) || return 1 + +# Some handy alias. +alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind' + +# 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 + +# Show reminders now. +remind -h -g -t5 ~/.remind && echo + +# Wtite "stamp" file. +[[ -w ~/ ]] && touch ~/.last_reminder