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.
This commit is contained in:
Marty Oehme 2021-11-23 16:13:54 +01:00
parent a99982028e
commit 6908c19457
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
1 changed files with 8 additions and 0 deletions

View File

@ -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 "💀"