X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/cc85ba567789e2f9a33c2e99b3f9a3b550ce1722..46e402f64226736555c6f276393a451667200f54:/.zsh/zshrc/parts.d/50-taskwarrior diff --git a/.zsh/zshrc/parts.d/50-taskwarrior b/.zsh/zshrc/parts.d/50-taskwarrior index 1101ea1..f880ed9 100644 --- a/.zsh/zshrc/parts.d/50-taskwarrior +++ b/.zsh/zshrc/parts.d/50-taskwarrior @@ -1,7 +1,7 @@ # -# display ready taskwarrior tasks +# taskwarrior shell integration # -# Copyright © 1994–2017 martin f. krafft +# Copyright © 2018 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: http://git.madduck.net/v/etc/zsh.git @@ -9,18 +9,24 @@ if whence task >/dev/null; then - alias t=task - alias t\?='alias -rm t t[a-z]' + function t() { task "$@"; } + + alias t\?='alias -rm t[-+a-z]' alias ta='t add' - alias tn='t next' + alias tc='t call' + alias th='t attach' alias tl='t all' - alias ty='t sync' + alias ty='t rc.recurrence=on next && task sync' alias td='t done' alias te='t edit' + alias tu='t undo' alias tm='t modify' + alias ts='t start' + alias tw='t waiting' + alias t+='t annotate' - run_at_most_every 30s \ - task 2>/dev/null || : + run_at_most_every 5m \ + t 2>/dev/null || : fi # vim:ft=zsh