]> gitweb.fluxo.info Git - scripts.git/commitdiff
TODO: tasks fix
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 14:10:19 +0000 (11:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 14:10:19 +0000 (11:10 -0300)
todo

diff --git a/todo b/todo
index a7745283e784bbdba7b5eca5661f2d35513bd218..5cf79d1324bb3073563ee8ee791ef90841478262 100755 (executable)
--- a/todo
+++ b/todo
@@ -49,7 +49,12 @@ function todo_list {
   fi
 
   # Taskwarrior data from projects
-  SILENT=true tasks +$status list
+  if [ ! -z "$status" ]; then
+    taskstatus="+$status"
+    SILENT="true"
+  fi
+
+  SILENT=$SILENT tasks $taskstatus list
   echo ""
 
   # User's Timewarrior