Skip to content

Commit

Permalink
unset proxy vars when deactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrand committed Oct 25, 2019
1 parent f6b9dba commit c8e9310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bosh-cli/proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c8e9310

Please sign in to comment.