Skip to content

Instantly share code, notes, and snippets.

@qmdx00
Created April 18, 2020 04:21
Show Gist options
  • Save qmdx00/4a83d528df6981d43fb56207aace6c71 to your computer and use it in GitHub Desktop.
Save qmdx00/4a83d528df6981d43fb56207aace6c71 to your computer and use it in GitHub Desktop.
linux shell proxy config
# 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