Skip to content

Instantly share code, notes, and snippets.

@kirankotari
Created July 31, 2022 17:11
Show Gist options
  • Save kirankotari/ec655e20764abde4b193ff7e289fe6da to your computer and use it in GitHub Desktop.
Save kirankotari/ec655e20764abde4b193ff7e289fe6da to your computer and use it in GitHub Desktop.
setting and unsetting proxy from .bash_profile
alias proxy="export https_proxy=http://<url>:<port>;export http_proxy=http://<url>:<port>"
alias noproxy="export https_proxy='';export http_proxy='';"
# How to use
# call `proxy` command in terminal to setup
# call `noproxy` to unset
# by defalt we are setting the proxy
proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment