1 if (( ! $
+commands
[task
] )); then
5 alias task
="noglob task"
9 alias in="task add +in"
10 alias inn
="in rc.context=none"
12 alias tw
="task context wfh"
13 alias th
="task context home"
15 alias tlatest
="t +LATEST"
17 autoload
-Uz task-quote-magic
18 zle
-N self-insert task-quote-magic
26 # TODO: have duration as an option to allow multiple filter
27 if (( # < 1 || # > 2)); then
28 print
>&2 "Usage: $0 <filter> [duration]"
31 task
$1 mod
wait:${2:-1h}
34 # TODO: function to show the latest report
36 function task_today_list
() {
37 local task_cmd
=(task rc.verbose
:nothing
)
38 local task_count
=$
($task_cmd $
($task_cmd _get rc.report.today.filter
) count
)
41 task_status
+="%{$fg_bold[red]%} $task_count "
42 task_status
+="%{$reset_color%}"