zsh 启动时无法使用已经添加到~/.bash_profile
2021-07-09 本文已影响0人
三三哥
解决方案:
cat ~/.zshrc
添加 source ~/.bash_profile
原因: zshrc 是 zsh 启动时自动加载的, 所以通过 添加 source ~/.bash_profile 来激活一下bash_profile里面的内容。
解决方案:
cat ~/.zshrc
添加 source ~/.bash_profile
原因: zshrc 是 zsh 启动时自动加载的, 所以通过 添加 source ~/.bash_profile 来激活一下bash_profile里面的内容。