.bash_profile .bashrc .zshrc介绍

官方解释:https://support.apple.com/zh-cn/HT208050

  • 从 macOS Catalina 版开始,zsh (Z shell) 是所有新建用户帐户的默认 Shell。
  • bash 是 macOS Mojave 及更低版本中的默认 Shell。

所以之前在.bash_profile和.bashrc配置的环境变量,在新版本mac不生效了。
解决方式,在.zshrc添加适配代码:. ~/.bash_profile 和 ~/.bashrc

你可能感兴趣的:(.bash_profile .bashrc .zshrc介绍)