]> git.madduck.net Git - etc/zsh.git/blob - .zsh/zlogin/90_db

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:

clear sudo cache on logout
[etc/zsh.git] / .zsh / zlogin / 90_db
1 # zlogin/90_db
2 #
3 # print today's reminder items
4 #
5 # Copyright © 1994–2013 martin f. krafft <madduck@madduck.net>
6 # Released under the terms of the Artistic Licence 2.0
7 #
8 # Source repository: git://git.madduck.net/etc/zsh.git
9 #
10
11 if whence db >/dev/null; then
12   cnt=0
13   db -md1 | while read line; do
14     [ -n "$line" ] || continue
15     if [ $cnt -eq 0 ]; then
16       cnt=$((cnt+1))
17       echo "*** $line"
18     else
19       echo "$line"
20     fi
21   done
22   [ $cnt -gt 0 ] && echo
23 fi
24
25 # vim:ft=zsh