diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-23 22:46:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-23 22:46:40 +0200 |
| commit | c8baf70fbb7aa45fb8680edfc546ec788bf97ecc (patch) | |
| tree | 02564c0b92f6a7931bb02f5f91b9e8f91eae51ed /fish/conf.d/taskwarrior.fish | |
| parent | b043c00c596258f15a592eb5e419f0d86450ece9 (diff) | |
Update
Diffstat (limited to 'fish/conf.d/taskwarrior.fish')
| -rw-r--r-- | fish/conf.d/taskwarrior.fish | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fish/conf.d/taskwarrior.fish b/fish/conf.d/taskwarrior.fish index 44ac174..3f35097 100644 --- a/fish/conf.d/taskwarrior.fish +++ b/fish/conf.d/taskwarrior.fish @@ -115,9 +115,9 @@ function taskwarrior::import end function taskwarrior::cleanup - # Guard against "No tasks specified." when there is nothing to delete - test (task +random status:completed count) -gt 0; and yes | task +random status:completed delete - test (task +agent status:completed count) -gt 0; and yes | task +agent status:completed delete + # Delete only tasks completed over a week ago + test (task +random status:completed end.before:today-7days count) -gt 0; and yes | task +random status:completed end.before:today-7days delete + test (task +agent status:completed end.before:today-7days count) -gt 0; and yes | task +agent status:completed end.before:today-7days delete end function taskwarrior::unscheduled |
