Skip to content

Instantly share code, notes, and snippets.

@daog1
Forked from Akagi201/proxy.sh
Created April 30, 2022 13:05
Show Gist options
  • Save daog1/6ada28105d0abd31611b845af890b5c2 to your computer and use it in GitHub Desktop.
Save daog1/6ada28105d0abd31611b845af890b5c2 to your computer and use it in GitHub Desktop.
[proxy]
function proxy(){
#export ALL_PROXY=socks5://127.0.0.1:1086;
export http_proxy=http://127.0.0.1:1087;
export https_proxy=http://127.0.0.1:1087;
echo -e "芝麻开门了"
}
function unproxy(){
#unset ALL_PROXY
unset http_proxy
unset https_proxy
echo -e "芝麻发霉了"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment