# proxy list
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
}
unproxy() {
unset all_proxy
unset http_proxy
unset https_proxy
}
# reload
source ~/.zshrc
# call proxy in terminal
proxy
# check
curl cip.cc
preferences -> system settings -> http proxy
manual proxy configuration
http or socks host name: 127.0.0.1 port number: 1086