mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 13:30:07 +00:00
comments
This commit is contained in:
parent
9fcc380cac
commit
924dfe6889
1 changed files with 3 additions and 3 deletions
|
@ -4167,17 +4167,17 @@ function _p9k_fetch_nordvpn_status() {
|
||||||
tag=$((#tag))
|
tag=$((#tag))
|
||||||
(( (tag >>= 3) && tag <= $#__p9k_nordvpn_tag )) || break
|
(( (tag >>= 3) && tag <= $#__p9k_nordvpn_tag )) || break
|
||||||
tag=$__p9k_nordvpn_tag[tag]
|
tag=$__p9k_nordvpn_tag[tag]
|
||||||
[[ -t $fd ]] || true
|
[[ -t $fd ]] || true # https://www.zsh.org/mla/workers/2020/msg00207.html
|
||||||
sysread -c n -s 1 -t 0.25 len
|
sysread -c n -s 1 -t 0.25 len
|
||||||
len=$((#len))
|
len=$((#len))
|
||||||
val=
|
val=
|
||||||
(( ! len )) || {
|
(( ! len )) || {
|
||||||
[[ -t $fd ]] || true
|
[[ -t $fd ]] || true # https://www.zsh.org/mla/workers/2020/msg00207.html
|
||||||
sysread -c n -s $len -t 0.25 val
|
sysread -c n -s $len -t 0.25 val
|
||||||
(( n == len ))
|
(( n == len ))
|
||||||
}
|
}
|
||||||
typeset -g $tag=$val
|
typeset -g $tag=$val
|
||||||
[[ -t $fd ]] || true
|
[[ -t $fd ]] || true # https://www.zsh.org/mla/workers/2020/msg00207.html
|
||||||
sysread -c n -s 1 -t 0.25 tag
|
sysread -c n -s 1 -t 0.25 tag
|
||||||
done
|
done
|
||||||
} <&$fd
|
} <&$fd
|
||||||
|
|
Loading…
Reference in a new issue