From ddd6cea704faab53c5d12b13d7722df1c5e62109 Mon Sep 17 00:00:00 2001 From: userid0x0 <49469899+userid0x0@users.noreply.github.com> Date: Tue, 25 Nov 2025 10:38:47 +0100 Subject: [PATCH] fix: consider corporate proxies for ohmyzsh installation preserve http_proxy/https_proxy/no_proxy and the matching uppercase variants --- src/zsh/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zsh/install.sh b/src/zsh/install.sh index 569b4342e..a78b21767 100755 --- a/src/zsh/install.sh +++ b/src/zsh/install.sh @@ -23,7 +23,7 @@ if [ "$_REMOTE_USER" = "root" ]; then USER_LOCATION="/root" else #install OhMyZsh as the $_REMOTE_USER - su - "$_REMOTE_USER" -c "sh -c $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" || true + su --whitelist-environment="http_proxy,https_proxy,no_proxy,HTTP_PROXY,HTTPS_PROXY,NO_PROXY" - "$_REMOTE_USER" -c "sh -c $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" || true USER_LOCATION="/home/$_REMOTE_USER" fi