From 997d73e1205aef48802320fed33ecd74741e53f5 Mon Sep 17 00:00:00 2001 From: Felix Boerner Date: Sun, 7 Feb 2021 19:37:55 +0100 Subject: [PATCH] feat: add all proxy env variable --- proxy.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy.plugin.zsh b/proxy.plugin.zsh index 5dd0f6a..5303526 100644 --- a/proxy.plugin.zsh +++ b/proxy.plugin.zsh @@ -2,6 +2,7 @@ _HTTP_PROXY=$(cat "${HOME}/.proxy/http_proxy") _HTTPS_PROXY=$(cat "${HOME}/.proxy/https_proxy") _FTP_PROXY=$(cat "${HOME}/.proxy/ftp_proxy") _RSYNC_PROXY=$(cat "${HOME}/.proxy/rsync_proxy") +_ALL_PROXY=$(cat "${HOME}/.proxy/all_proxy") _NO_PROXY=$(cat "${HOME}/.proxy/no_proxy") enable_proxy() { @@ -13,6 +14,8 @@ enable_proxy() { export FTP_PROXY="${_FTP_PROXY}" export rsync_proxy="${_RSYNC_PROXY}" export RSYNC_PROXY="${_RSYNC_PROXY}" + export all_proxy="${_ALL_PROXY}" + export ALL_PROXY="${_ALL_PROXY}" export no_proxy="${_NO_PROXY}" export NO_PROXY="${_NO_PROXY}" } @@ -26,6 +29,8 @@ disable_proxy() { unset FTP_PROXY unset rsync_proxy unset RSYNC_PROXY + unset all_proxy + unset ALL_PROXY unset no_proxy unset NO_PROXY } @@ -35,6 +40,7 @@ list_proxy() { echo "HTTPS_PROXY=\"${_HTTPS_PROXY}\"" echo "FTP_PROXY=\"${_FTP_PROXY}\"" echo "RSYNC_PROXY=\"${_RSYNC_PROXY}\"" + echo "ALL_PROXY=\"${_ALL_PROXY}\"" echo "NO_PROXY=\"${_NO_PROXY}\"" }