From c8e93102aa9b1fa1665479569a5fe27003f0fb9e Mon Sep 17 00:00:00 2001 From: Olivier Grand Date: Fri, 25 Oct 2019 12:36:26 +0000 Subject: [PATCH] unset proxy vars when deactivated --- bosh-cli/proxy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bosh-cli/proxy.sh b/bosh-cli/proxy.sh index 878dcb6..71e3941 100644 --- a/bosh-cli/proxy.sh +++ b/bosh-cli/proxy.sh @@ -34,7 +34,7 @@ if [ "${proxyStatus}" = "" ] ; then export PS1="${GREEN}\h@${SITE_NAME}${YELLOW}[proxy]${CYAN}\$(parse_git_branch)${STD}:${BLUE}\w${STD}\$ " else printf "%bDeactivate \"internet-proxy\"%b\n" "${YELLOW}${BOLD}" "${STD}" - unset http_proxy - unset https_proxy + unset http_proxy https_proxy no_proxy + unset HTTP_PROXY HTTPS_PROXY NO_PROXY export PS1="${GREEN}\h@${SITE_NAME}${CYAN}\$(parse_git_branch)${STD}:${BLUE}\w${STD}\$ " fi