Skip to content

Instantly share code, notes, and snippets.

@punkmonday
Created August 23, 2019 04:10
Show Gist options
  • Select an option

  • Save punkmonday/96aa70271639758148feed252043e994 to your computer and use it in GitHub Desktop.

Select an option

Save punkmonday/96aa70271639758148feed252043e994 to your computer and use it in GitHub Desktop.
.zshrc
proxy-activate() {
export http_proxy='http://127.0.0.1:8118'
export https_proxy=$http_proxy
}
proxy-deactivate() {
unset http_proxy
unset https_proxy
}
alias pa='proxy-activate'
alias pd='proxy-deactivate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment