Created
January 9, 2022 14:54
-
-
Save chardskarth/0a49d4da8314ae9e8f972d257e25a4f0 to your computer and use it in GitHub Desktop.
My taswkwarrior zsh scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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