ZSHFiles/p10k-segments/prompt_c_covid_19

5 lines
266 B
Plaintext

local tmpfile=${CACHEPATH:-~/.cache}/covid
[ -r "$tmpfile" ] || return
typeset -g _cprompts_covid=($(< $tmpfile))
[ -v _cprompts_covid ] && p10k segment -b red -i '' -t "${_cprompts_covid[1]:-unknown} ($(( ${_cprompts_covid[1]:-0} - ${_cprompts_covid[2]:-0} )))"