2020-07-18 22:43:39 +00:00
|
|
|
local tmpfile=$CACHEPATH/weather
|
2020-11-06 17:17:43 +00:00
|
|
|
[ -r "$tmpfile" ] || return
|
|
|
|
typeset -g _cprompts_weather=($(< $tmpfile))
|
2020-11-03 15:02:33 +00:00
|
|
|
[ -v _cprompts_weather ] && p10k segment -b ${_cprompts_weather[2]:-white} -i ${_cprompts_weather[3]:-\?} -t "${_cprompts_weather[1]:-unknown}°C ${_cprompts_weather[4]:-unk}%%"
|