commit 94b5d49cdae1aec46d7673d2ce638007186b65b0 from: Paul W. Rankin date: Thu Aug 04 11:55:40 2022 UTC Add todo_alt_file and done_file commit - 5215d426289002471d362541c232c130af6f9a05 commit + 94b5d49cdae1aec46d7673d2ce638007186b65b0 blob - 50753140bf25fe45f5d6c36d2d07c4cc3725ca8b blob + e387abcacc7073b0cf04ac443f7654d1fdead358 --- todo.sh +++ todo.sh @@ -8,8 +8,11 @@ for f in *; do expr "$f" : [Tt][Oo][Dd][Oo] > /dev/null && todo_file="$f" && break done -test -f "$todo_file" || fail "TODO_FILE not found" +[ -n $todo_file ] || todo_file="${TODO_FILE:-${PWD}/TODO}" +todo_alt_file="${TODO_ALT_FILE:-${PWD}/REMEMBER}" +done_file="${DONE_FILE:-${PWD}/DONE}" + usage() { echo "usage: $program TASK" echo " $program [-d LINENUM] [-e] [-Ss QUERY]"