From cc04f6d907328afe2808993a47e3a3e9763be454 Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 26 Mar 2025 16:44:10 +0100 Subject: [PATCH] addet correct show options --- .zshenv | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 >─────────────────────────────────────────────