zsh/modules/todo/init
2013-03-18 09:28:14 +01:00

16 lines
214 B
Bash

#!/bin/zsh
if command -v todo >/dev/null; then
todo_count() {
if [ -n "$2" ]; then
file="--database $2"
else
file="-G"
fi
todo ${=file} -f +${1:-high} | wc -l
}
else
todo_count() {
echo -1
}
fi