#!/bin/sh
: ${todo:=~/.todo}
: ${type:=work}
if [ "$#" = 0 ]; then
	$PAGER "$todo"
elif [ "$#" = 1 ]; then
	$PAGER "$todo" | grep "	$1	"
else
#	type="$1" ; shift
	msg="$*"
	echo "`dt`	$type	$msg" >>"$todo"
fi
