X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/8d00b4f7a3634056b878320a3c08cdfb267e9118..385caf01793167d7087a1aec760edffb33a2d2a0:/.zsh/zshrc/parts.d/50-taskwarrior?ds=sidebyside diff --git a/.zsh/zshrc/parts.d/50-taskwarrior b/.zsh/zshrc/parts.d/50-taskwarrior index ba99128..561493a 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 @@ -18,15 +18,10 @@ if whence task >/dev/null; then alias td='t done' alias te='t edit' alias tm='t modify' + alias ts='t start' - 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} + run_at_most_every 30s \ task 2>/dev/null || : - fi - unset SENTINEL fi # vim:ft=zsh