每次我在终端上运行 brew
命令时,我都会不断收到此消息:
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
我已经在 ~/.zshrc
中设置了变量 export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
。
是否应该将HOMEBREW_NO_INSTALL_CLEANUP
设置为false
?
提前致谢。
最佳答案
我认为这是你的 shell 问题,export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
在终端 session 和 ~/.bash_profile
中都适用于我(我正在使用 bash)。
您可以通过 echo $SHELL
验证您的默认 shell。
关于homebrew - 通过设置 HOMEBREW_NO_INSTALL_CLEANUP 禁用此行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71872726/