在 ~/.zshrc 或 ~/.bashrc export HOMEBREW_NO_AUTO_UPDATE=1export HOMEBREW_NO_INSTALL_CLEANUP=1生效:source ~/.zshrc