dotfiles/taskwarrior/.local/bin/task-overdue-prompt
Marty Oehme 6908c19457
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.
2021-11-23 16:13:54 +01:00

9 lines
266 B
Bash
Executable file

#!/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 "💀"