Created
April 18, 2020 04:21
-
-
Save qmdx00/4a83d528df6981d43fb56207aace6c71 to your computer and use it in GitHub Desktop.
linux shell proxy config
This file contains 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
# where proxy | |
proxy () { | |
export http_proxy="http://127.0.0.1:1086" | |
export https_proxy="http://127.0.0.1:1086" | |
echo "HTTP Proxy on" | |
} | |
# where noproxy | |
noproxy () { | |
unset http_proxy | |
unset https_proxy | |
echo "HTTP Proxy off" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment