aboutsummaryrefslogtreecommitdiff
path: root/todo
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-13 19:06:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-13 19:06:56 -0300
commit6245c401c8b5b291509080fef6a6ff5b659cc748 (patch)
tree25abc469da39d148513ed42a7154fda1f4ee2ebf /todo
parenta59dffdae995ad3fc008c288fa2be8cfc4d8dcc2 (diff)
downloadscripts-6245c401c8b5b291509080fef6a6ff5b659cc748.tar.gz
scripts-6245c401c8b5b291509080fef6a6ff5b659cc748.tar.bz2
TODO: adds count option
Diffstat (limited to 'todo')
-rwxr-xr-xtodo2
1 files changed, 2 insertions, 0 deletions
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