From 6245c401c8b5b291509080fef6a6ff5b659cc748 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 13 Oct 2016 19:06:56 -0300 Subject: TODO: adds count option --- todo | 2 ++ 1 file changed, 2 insertions(+) (limited to 'todo') diff --git a/todo b/todo index 3c17c4f..89e0771 100755 --- a/todo +++ b/todo @@ -43,6 +43,8 @@ function todo_list { if [ "$OPTION" == "list" ]; then todo_list | less +elif [ "$OPTION" == "count" ]; then + todo_find | wc -l else todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|" fi -- cgit v1.2.3