]> arthur.barton.de Git - ax-zsh.git/blob - plugins/remind/remind.zshrc
9f275348e8665b7aa19523b39f446e6b99b278a5
[ax-zsh.git] / plugins / remind / remind.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # remind.zshrc: Show reminders of remind(1).
3
4 # Make sure that "remind(1)" is installed.
5 (( $+commands[remind] )) || return 1
6
7 # Some handy alias.
8 alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind'
9
10 # Check if reminders have been shown during last 60 minutes, and if so,
11 # don't show them now but return.
12 [[ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]] || return 0
13
14 # Show reminders now.
15 remind -h -g -t5 ~/.remind && echo
16
17 # Wtite "stamp" file.
18 [[ -w ~/ ]] && touch ~/.last_reminder