From 294a33ee1ad12dfb7f7e63c57b93c0a8d8abb2f7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Jun 2023 13:03:08 +0200 Subject: [PATCH] remove hardcoded DNS in network check --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 3588ff2..f42c2e4 100644 --- a/.zshrc +++ b/.zshrc @@ -31,7 +31,7 @@ zplug chriskempson/base16-shell, from:github zplug load base16_gruvbox-dark-hard -if dig @1.1.1.1 google.com +timeout=1 >/dev/null 2>&1; then; +if dig google.com +timeout=1 >/dev/null 2>&1; then; HAS_NETWORK=1 else echo "No internet connection detected!"