Recently, I’ve found brew update is extremely slow no matter I was in the office or at home.
To be honest, the network is not so good in China these days.
So, here comes the solution.
vi $HOME/.zshrdalias proxy='export all_proxy=socks5://127.0.0.1:1081'
alias unproxy='unset all_proxy'source $HOME/.zshrcNow, use proxy && brew update && unproxy is resolved my problem.