Created
September 25, 2017 02:24
-
-
Save huzhennan/b50cd24952a67a6189d95c2a42b0872f to your computer and use it in GitHub Desktop.
bash shell开启/关闭http proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function start_proxy() { | |
| export HTTP_PROXY=http://localhost:56789 | |
| export HTTPS_PROXY=http://localhost:56789 | |
| } | |
| function stop_proxy() { | |
| export HTTP_PROXY="" | |
| export HTTPS_PROXY="" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment