From 6908c1945727246de5c1c0756f62fc3ef07edfb6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 23 Nov 2021 16:13:54 +0100 Subject: [PATCH] taskwarrior: Add overdue emoji script Added simple script `task-overdue-prompt` which checks for overdue tasks (*not* tasks to be done 'today') and display a skull if there are any. Intended for prompt use, it is currently still too slow to be used as such. But there may still be uses other than that so it is included for now. --- taskwarrior/.local/bin/task-overdue-prompt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 taskwarrior/.local/bin/task-overdue-prompt diff --git a/taskwarrior/.local/bin/task-overdue-prompt b/taskwarrior/.local/bin/task-overdue-prompt new file mode 100755 index 0000000..db244f1 --- /dev/null +++ b/taskwarrior/.local/bin/task-overdue-prompt @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh +# Simple script to display a skull if there are overdue tasks. +# Intended for prompt use +# (to be visibly reminded on the prompt of any tardiness) + +type task >/dev/null 2>&1 || exit 1 + +[ "$(task +OVERDUE -TODAY count)" -ge 0 ] && print -P "💀"