From 0adbc1415bf1bad46a7fd111b39640d995294dad Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Mon, 23 Jan 2023 11:11:20 +0100 Subject: [PATCH] fix a silly bug introduced in the last commit (#2170) --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 337f08e8..75f317ac 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -5744,7 +5744,7 @@ function _p9k_prompt_net_iface_async() { # netstat -inbI en0 local iface ip line var typeset -a iface2ip ips ifaces - if (( $+commands[ip] )) && [[ $+commands[ifconfig] == 0 || $OSTYPE != linux* ]]; then + if (( $+commands[ip] )) && [[ $+commands[ifconfig] == 0 || $OSTYPE == linux* ]]; then for line in ${(f)"$(command ip -4 a show 2>/dev/null)"}; do if [[ $line == (#b)<->:[[:space:]]##([^:]##):[[:space:]]##\<([^\>]#)\>* ]]; then [[ ,$match[2], == *,UP,* ]] && iface=$match[1] || iface=