Last active
August 9, 2023 09:49
-
-
Save lantrix/7789858ef74b77c4a50e to your computer and use it in GitHub Desktop.
Proxy On/Off Alias for Bash including Curl
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 Alias | |
| alias proxyon="echo -e \"proxy = http://user:password@proxyserver:8080\n\" > ~/.curlrc && export http_proxy='http://user:password@proxyserver:8080';export https_proxy='http://user:password@proxyserver:8080'" | |
| alias proxyoff="export http_proxy='';export https_proxy='' && rm ~/.curlrc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice