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:
parent
a99982028e
commit
6908c19457
1 changed files with 8 additions and 0 deletions
8
taskwarrior/.local/bin/task-overdue-prompt
Executable file
8
taskwarrior/.local/bin/task-overdue-prompt
Executable 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 "💀"
|
Loading…
Reference in a new issue