From 51885a3214a596af6885398cd54a35d4d3721320 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 9 Jul 2013 11:55:55 +0200 Subject: [PATCH] Print calendar for today on every login shell --- .zsh/zlogin/90_db | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .zsh/zlogin/90_db diff --git a/.zsh/zlogin/90_db b/.zsh/zlogin/90_db new file mode 100644 index 0000000..aeaeea0 --- /dev/null +++ b/.zsh/zlogin/90_db @@ -0,0 +1,23 @@ +# zlogin/90_db +# +# print today's reminder items +# +# Copyright © 1994–2013 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.madduck.net/etc/zsh.git +# + +cnt=0 +db -md1 | while read line; do + [ -n "$line" ] || continue + if [ $cnt -eq 0 ]; then + cnt=$((cnt+1)) + echo "*** $line" + else + echo "$line" + fi +done +[ $cnt -gt 0 ] && echo + +# vim:ft=zsh -- 2.39.2