From: Mark Wooding Date: Mon, 11 Jun 2018 00:22:10 +0000 (+0100) Subject: dot/profile: Support (and export) `$https_proxy' variable. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/442bc88bbc7cfb8e377194ea0e616a168fce7c1b dot/profile: Support (and export) `$https_proxy' variable. --- diff --git a/dot/profile b/dot/profile index 9cd5a37..acf6167 100644 --- a/dot/profile +++ b/dot/profile @@ -208,13 +208,19 @@ case "${http_proxy-none},$http" in *,none) ;; none,*) http_proxy=http://$http/; export http_proxy ;; esac +https=$(mdw-conf https-proxy none) +case "${https_proxy-none},$https,${http_proxy-none}" in + *,none,none) ;; + none,none,*) https_proxy=$http_proxy; export https_proxy ;; + none,*,*) https_proxy=http://$https/; export ftp_proxy ;; +esac ftp=$(mdw-conf ftp-proxy none) case "${ftp_proxy-none},$ftp,${http_proxy-none}" in *,none,none) ;; none,none,*) ftp_proxy=$http_proxy; export ftp_proxy ;; none,*,*) ftp_proxy=http://$ftp/; export ftp_proxy ;; esac -unset http ftp +unset http https ftp ## Ncurses programs should use the Unicode box-drawing characters because the ## alternative character set stuff isn't supported well.