Created
July 31, 2022 17:11
-
-
Save kirankotari/ec655e20764abde4b193ff7e289fe6da to your computer and use it in GitHub Desktop.
setting and unsetting proxy from .bash_profile
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
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