在 ~/.zshrc 或 ~/.bashrc

    1. export HOMEBREW_NO_AUTO_UPDATE=1
    2. export HOMEBREW_NO_INSTALL_CLEANUP=1

    生效:source ~/.zshrc