diff --git a/.zshenv b/.zshenv index ff1ca9a..8cf4a11 100644 --- a/.zshenv +++ b/.zshenv @@ -95,8 +95,12 @@ proxy() { case "$1" in --show) echo "These are your proxy configurations:" - echo "http: ${http_proxy}, HTTP: ${HTTP_PROXY}" - echo "https: ${https_proxy}, HTTPS: ${HTTPS_PROXY}" + if [ -n "${http_proxy}" ] || [ -n "${HTTP_PROXY}" ] || [ -n "${https_proxy}" ] || [ -n "${HTTPS_PROXY}" ]; then + echo "http: ${http_proxy}| HTTP: ${HTTP_PROXY}" + echo "https: ${https_proxy}| HTTPS: ${HTTPS_PROXY}" + else + echo "No proxy configured." + fi ;; --set) # ─< Check if the IP and port are reachable >─────────────────────────────────────────────