morristech
1/17/2019 - 11:34 PM

terminal set proxy

terminal set proxy

add to ~/.zshrc

alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1080"
alias unsetproxy="unset ALL_PROXY"
alias ip="curl -i http://httpbin.org/ip"

then restart termainl

if you want to set proxy, run

$ setproxy

if you want to test proxy, run

$ ip