X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/1e0a565b0aa73b3bdb68bfa10984c94f2b0c4be1..ec61f6ce23692035808cffa23815356468c08b63:/.zsh/zshrc/parts.d/50-taskwarrior diff --git a/.zsh/zshrc/parts.d/50-taskwarrior b/.zsh/zshrc/parts.d/50-taskwarrior index b35e383..80ee776 100644 --- a/.zsh/zshrc/parts.d/50-taskwarrior +++ b/.zsh/zshrc/parts.d/50-taskwarrior @@ -10,13 +10,23 @@ if whence task >/dev/null; then alias t=task + alias t\?='alias -rm t t[a-z]' alias ta='t add' alias tn='t next' alias tl='t all' alias ty='t sync' alias td='t done' + alias te='t edit' + alias tm='t modify' - [[ -t 0 ]] && task 2>/dev/null || : + local SENTINEL=${XDG_RUNTIME_DIR}/taskwarrior/shell_run_sentinel + mkdir --parent ${SENTINEL%/*} + # only print the tasks at most once every 30 seconds + if [[ -t 0 ]] && [[ -z ${SENTINEL}(#qNms-30) ]]; then + touch ${SENTINEL} + task rc.color:off 2>/dev/null || : + fi + unset SENTINEL fi # vim:ft=zsh