Skip to content

Instantly share code, notes, and snippets.

@lantrix
Last active August 9, 2023 09:49
Show Gist options
  • Select an option

  • Save lantrix/7789858ef74b77c4a50e to your computer and use it in GitHub Desktop.

Select an option

Save lantrix/7789858ef74b77c4a50e to your computer and use it in GitHub Desktop.
Proxy On/Off Alias for Bash including Curl
#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"
@luckyops
Copy link

luckyops commented Aug 9, 2023

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment