From f7019152ebb3c5b87de6240fa4cb949a9e0c6d06 Mon Sep 17 00:00:00 2001 From: piecka Date: Tue, 25 Mar 2025 09:25:31 +0100 Subject: [PATCH] fix: finally a reliable option to set proxy or not.. --- .zprofile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zprofile b/.zprofile index b2e16d9..154d258 100644 --- a/.zprofile +++ b/.zprofile @@ -39,3 +39,9 @@ proxy() { noproxy() { unset {HTTP_PROXY,HTTPS_PROXY,http_proxy,https_proxy} } + +if ping -w2 -q swu.dom; then + proxy +else + noproxy +fi