Created
January 17, 2025 08:32
-
-
Save carmel/48bc98969d310274e462da00d5a735bf to your computer and use it in GitHub Desktop.
proxy
This file contains hidden or 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
# proxy | |
proxy () { | |
export http_proxy="http://127.0.0.1:$1" | |
export https_proxy=$http_proxy | |
export all_proxy="socks5://127.0.0.1:$1" | |
echo "HTTP Proxy on" | |
} | |
# noproxy | |
noproxy () { | |
unset http_proxy | |
unset https_proxy | |
unset all_proxy | |
echo "HTTP Proxy off" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment