]>
git.rmz.io Git - dotfiles.git/blob - zsh/lib/50-taskwarrior.zsh
1 if (( ! $
+commands
[task
] )); then
7 alias tlatest
="t +LATEST"
8 alias in="noglob task add +in"
9 alias inn
="in rc.context=none"
10 alias tw
="task context wfh"
11 alias th
="task context home"
13 autoload
-Uz task
-quote-magic
14 zle
-N self
-insert task
-quote-magic
22 if (( # < 1 || # > 2)); then
23 print
>&2 "Usage: $0 <filter> [duration]"
26 task
$1 mod
wait:${2:-1h}
29 function task_today_list
() {
30 local task_cmd
=(task rc.verbose
:nothing
)
31 local task_count
=$($task_cmd $($task_cmd _get rc.report.today.filter) count
)
34 task_status
+="%{$fg_bold[red]%} $task_count "
35 task_status
+="%{$reset_color%}"