Created
September 9, 2021 15:13
-
-
Save ashtonx/9b8a9b93d4fb2d3f9727bc1a4599408d to your computer and use it in GitHub Desktop.
personal Task Warrior bash script to add dailies
This file contains 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
#!/bin/sh | |
#variables | |
defaultDueDate=48h | |
dailiesTag="+dailies" | |
add_kanji_grind() | |
{ | |
tags="$dailiesTag +kanji +jp" | |
project=japanese | |
due=$defaultDueDate | |
amount=25 | |
for i in "N1 Vocab" "N2 Vocab" "N2 Readings" "N3 Vocab" | |
do | |
task $tags add project:$project due:$due Review $amount Kanji $i | |
done | |
return | |
} | |
add_duo() | |
{ | |
tags="$dailiesTag +jp +duo" | |
project=japanese | |
due=$defaultDueDate | |
for i in 1 2 3 4 5 | |
do | |
task $tags add project:$project due:$due Duolingo Japanese $i | |
done | |
return | |
} | |
# Adding dailies dailies | |
# comment out if not needed | |
add_kanji_grind | |
add_duo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment