📜  启动 mac 上的 source bash_profile - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:25.656000             🧑  作者: Mango

代码示例1
If you are using oh-my-zsh,
the default one that will be loaded automatically is ~/.zshrc.
All you need to do is adding the following at the end of ~/.zshrc:

if [ -f ~/.bash_profile ]; then
  . ~/.bash_profile
fi