dotfiles/office/.local/bin/task-overdue-prompt

9 lines
266 B
Text
Raw Permalink Normal View History

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