# # display ready taskwarrior tasks # # Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # # Source repository: http://git.madduck.net/v/etc/zsh.git # if whence task >/dev/null; then alias t=task alias ta='t add' alias tn='t next' alias tl='t all' alias ty='t sync' alias td='t done' 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