7 lines
283 B
Plaintext
7 lines
283 B
Plaintext
local cachefile=${CACHEPATH:-~/.cache}/twitch
|
|
[ -r $cachefile ] || return
|
|
local IFS=$'\n'
|
|
local streaming=($(< $cachefile))
|
|
typeset -g _cprompts_twitch=(${#streaming} $stats[1])
|
|
[ ${_cprompts_twitch[1]} -gt 0 ] && p10k segment -b purple -i '' -t "${_cprompts_twitch[1]:-unknown}"
|