summaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-26 14:47:34 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-26 14:47:34 +0300
commitad18cd78dba0676a5f1fefcebce9e7283a2bcbb7 (patch)
tree98828342152b744643473abea6403743e0450668 /internal/p10k.zsh
parent4cd2700a85053047fa2cf3b6fe4eee552cf72612 (diff)
call taskwarrior via `command task`
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh8
1 files 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 2>/dev/null)" || return
+ cfg="$(command task show data.location </dev/null 2>/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 2>/dev/null)" || continue
+ val="$(command task +$name count </dev/null 2>/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 2>/dev/null)) || ts=()
if (( $#ts )); then
_p9k_taskwarrior_next_due=${${(on)ts}[1]}
(( _p9k_taskwarrior_next_due > EPOCHSECONDS )) || _p9k_taskwarrior_next_due=$((EPOCHSECONDS+60))