diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-01-23 13:11:20 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2023-01-23 13:11:20 +0300 |
commit | 0adbc1415bf1bad46a7fd111b39640d995294dad (patch) | |
tree | 8e9ee719016a08d37587c634fb6d4b2bfbe094c6 | |
parent | f03d917fb0842e412748f284afba093aaeb01fc9 (diff) |
fix a silly bug introduced in the last commit (#2170)
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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= |