]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/50-taskwarrior.zsh
zsh: use noglob on `task` as well as the `t` alias
[dotfiles.git] / zsh / lib / 50-taskwarrior.zsh
index ce423cff03e21f842262561667c7f7b0e6246618..051b015a265a3d2f3b04818b0cf7dedae17de1a5 100644 (file)
@@ -2,7 +2,8 @@ if (( ! $+commands[task] )); then
     return 1
 fi
 
-alias t="noglob task"
+alias task="noglob task"
+alias t="task"
 alias tt="task today"
 alias tlatest="t +LATEST"
 alias in="noglob task add +in"
@@ -18,6 +19,14 @@ function tparent() {
     task _get $1.rparent
 }
 
+function tick() {
+    if (( # < 1 || # > 2)); then
+        print >&2 "Usage: $0 <filter> [duration]"
+        return 1
+    fi
+    task $1 mod wait:${2:-1h}
+}
+
 function task_today_list() {
   local task_cmd=(task rc.verbose:nothing)
   local task_count=$($task_cmd $($task_cmd _get rc.report.today.filter) count)