From ad18cd78dba0676a5f1fefcebce9e7283a2bcbb7 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 26 May 2020 13:47:34 +0200 Subject: [PATCH] call taskwarrior via `command task` --- internal/p10k.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c587c4b7..ce3f7214 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4776,7 +4776,7 @@ function _p9k_taskwarrior_init_meta() { local last_sig=$_p9k_taskwarrior_meta_sig { local cfg - cfg="$(task show data.location /dev/null)" || return + cfg="$(command task show data.location /dev/null)" || return local lines=(${(@M)${(f)cfg}:#data.location[[:space:]]##[^[:space:]]*}) (( $#lines == 1 )) || return local dir=${lines[1]##data.location[[:space:]]#} @@ -4832,7 +4832,7 @@ function _p9k_taskwarrior_init_data() { local name val for name in PENDING OVERDUE; do - val="$(task +$name count /dev/null)" || continue + val="$(command task +$name count /dev/null)" || continue [[ $val == <1-> ]] || continue _p9k_taskwarrior_counters[$name]=$val done @@ -4841,8 +4841,8 @@ function _p9k_taskwarrior_init_data() { if (( _p9k_taskwarrior_counters[PENDING] > _p9k_taskwarrior_counters[OVERDUE] )); then local -a ts - ts=($(task +PENDING -OVERDUE list \ - rc.verbose=nothing rc.report.list.labels= rc.report.list.columns=due.epoch)) || ts=() + ts=($(command task +PENDING -OVERDUE list rc.verbose=nothing \ + rc.report.list.labels= rc.report.list.columns=due.epoch /dev/null)) || ts=() if (( $#ts )); then _p9k_taskwarrior_next_due=${${(on)ts}[1]} (( _p9k_taskwarrior_next_due > EPOCHSECONDS )) || _p9k_taskwarrior_next_due=$((EPOCHSECONDS+60))