aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-05 18:38:09 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-05 18:38:09 +0300
commit01cce2c4eb91bbcfa08394b452f88b872df356f5 (patch)
tree216293ea5f68798db5f5b3a453818d86c313a229 /internal/p10k.zsh
parent80015c7c71d0ff8aa2b26655a576b70f3b089025 (diff)
fix netstat parsing on macos
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 34663187..7fe3f237 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4607,7 +4607,7 @@ function _p9k_prompt_net_iface_async() {
_p9k_read_file /sys/class/net/$iface/statistics/tx_bytes; then
ip_tx_bytes=$_p9k_ret
fi
- elif [[ $_p9k_os == (BSD|OSX) && $commands[netstat] == 1 ]]; then
+ elif [[ $_p9k_os == (BSD|OSX) && $+commands[netstat] == 1 ]]; then
local -a lines
if lines=(${(f)"$(netstat -inbI $iface)"}); then
local header=($=lines[1])