From: Silvio Rhatto Date: Thu, 13 Oct 2016 22:06:56 +0000 (-0300) Subject: TODO: adds count option X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6245c401c8b5b291509080fef6a6ff5b659cc748;p=scripts.git TODO: adds count option --- 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