2020-11-06 17:17:43 +00:00
|
|
|
local tmpfile=${CACHEPATH:-~/.cache}/covid
|
|
|
|
[ -r "$tmpfile" ] || return
|
|
|
|
typeset -g _cprompts_covid=($(< $tmpfile))
|
2020-07-24 20:49:14 +00:00
|
|
|
[ -v _cprompts_covid ] && p10k segment -b red -i '' -t "${_cprompts_covid[1]:-unknown} ($(( ${_cprompts_covid[1]:-0} - ${_cprompts_covid[2]:-0} )))"
|