From c8baf70fbb7aa45fb8680edfc546ec788bf97ecc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 23 Feb 2026 22:46:40 +0200 Subject: Update --- fish/conf.d/taskwarrior.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fish') 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 -- cgit v1.2.3