zsh 每次打开Terminal都需要source bash_profile问题

Posted 克维拉

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zsh 每次打开Terminal都需要source bash_profile问题相关的知识,希望对你有一定的参考价值。

zsh 每次打开Terminal都需要source bash_profile问题

 

 

zsh加载的是 ~/.zshrc文件,而.zshrc’ 文件中并没有定义任务环境变量。 
解决办法,在~/.zshrc文件最后,增加一行:

source .bash_profile

以上是关于zsh 每次打开Terminal都需要source bash_profile问题的主要内容,如果未能解决你的问题,请参考以下文章

linux下.bashrc为啥每次打开终端都要source一下才有效,如何才能永远生效?

Mac安装zsh后必须多次执行`source .bash_profile`解决方案

如何设置Mac的Terminal颜色

macOS 在终端中使用 adb命令,每次都要source ~/.bash_profile 才生效

MacOS Catalina之Terminal配置

mac电脑安装zsh,使用过程中常用快捷键总结