]> git.donarmstrong.com Git - zsh.git/blob - .zsh/zlogin/90_db
fix rprompt
[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 cnt=0
12 db -md1 | while read line; do
13   [ -n "$line" ] || continue
14   if [ $cnt -eq 0 ]; then
15     cnt=$((cnt+1))
16     echo "*** $line"
17   else
18     echo "$line"
19   fi
20 done
21 [ $cnt -gt 0 ] && echo
22
23 # vim:ft=zsh