Skip to content

Instantly share code, notes, and snippets.

@chardskarth
Created January 9, 2022 14:54
Show Gist options
  • Save chardskarth/0a49d4da8314ae9e8f972d257e25a4f0 to your computer and use it in GitHub Desktop.
Save chardskarth/0a49d4da8314ae9e8f972d257e25a4f0 to your computer and use it in GitHub Desktop.
My taswkwarrior zsh scripts
tprojectstasks() { # get the first task for each project
local tasks
local taskfilter=$1
if [ -z "$taskfilter" ]
then
tasks=$(task rc.list.all.projects=1 _projects)
else
tasks=$(task rc.list.all.projects=1 $taskfilter _projects)
fi
taskuuids=$(while IFS= read -r line; do
task project:"$line" _id | head -n1
done <<< "$tasks")
task "$taskuuids" projectinweek
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment