]> gitweb.fluxo.info Git - scripts.git/commitdiff
TODO: adds count option
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 13 Oct 2016 22:06:56 +0000 (19:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 13 Oct 2016 22:06:56 +0000 (19:06 -0300)
todo

diff --git a/todo b/todo
index 3c17c4fd536ec8dd4941ff5fcaee94e2875e43fe..89e0771e65c31e245ad618dac2287f8c398c3fed 100755 (executable)
--- 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