madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Print calendar for today on every login shell
authormartin f. krafft <madduck@madduck.net>
Tue, 9 Jul 2013 09:55:55 +0000 (11:55 +0200)
committermartin f. krafft <madduck@madduck.net>
Tue, 9 Jul 2013 09:55:55 +0000 (11:55 +0200)
.zsh/zlogin/90_db [new file with mode: 0644]

diff --git a/.zsh/zlogin/90_db b/.zsh/zlogin/90_db
new file mode 100644 (file)
index 0000000..aeaeea0
--- /dev/null
@@ -0,0 +1,23 @@
+# zlogin/90_db
+#
+# print today's reminder items
+#
+# Copyright © 1994–2013 martin f. krafft <madduck@madduck.net>
+# 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