Skip to content

Instantly share code, notes, and snippets.

@marcransome
Last active September 7, 2016 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcransome/c891aebacb336862cca3d5ecfda3faca to your computer and use it in GitHub Desktop.
Save marcransome/c891aebacb336862cca3d5ecfda3faca to your computer and use it in GitHub Desktop.
function proxy {
for env_var in http_proxy HTTP_PROXY https_proxy HTTPS_PROXY; do
export $env_var=''
done
export no_proxy="localhost,127.0.0.1"
}
proxy
function noproxy {
for env_var in http_proxy HTTP_PROXY https_proxy HTTPS_PROXY; do
unset $env_var
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment