1 if (( ! $
+commands
[task
] )); then
5 alias task
="noglob task"
8 alias tlatest
="t +LATEST"
9 alias in="noglob task add +in"
10 alias inn
="in rc.context=none"
11 alias tw
="task context wfh"
12 alias th
="task context home"
14 autoload
-Uz task-quote-magic
15 zle
-N self-insert task-quote-magic
23 if (( # < 1 || # > 2)); then
24 print
>&2 "Usage: $0 <filter> [duration]"
27 task
$1 mod
wait:${2:-1h}
30 function task_today_list
() {
31 local task_cmd
=(task rc.verbose
:nothing
)
32 local task_count
=$
($task_cmd $
($task_cmd _get rc.report.today.filter
) count
)
35 task_status
+="%{$fg_bold[red]%} $task_count "
36 task_status
+="%{$reset_color%}"