aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-26 11:10:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-26 11:10:19 -0300
commitbc4ef0772060dbff10d799462bbd20d0330c3823 (patch)
tree620ff069c28d5be7b8996d037063db05f67aea10
parent42919cc0635ce4c3d57110eea0f38b5c99b880ba (diff)
downloadscripts-bc4ef0772060dbff10d799462bbd20d0330c3823.tar.gz
scripts-bc4ef0772060dbff10d799462bbd20d0330c3823.tar.bz2
TODO: tasks fix
-rwxr-xr-xtodo7
1 files changed, 6 insertions, 1 deletions
diff --git a/todo b/todo
index a774528..5cf79d1 100755
--- 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