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