美文网首页
Zsh 支持加载 .bash_profile 文件

Zsh 支持加载 .bash_profile 文件

作者: CHMAX | 来源:发表于2020-09-24 11:21 被阅读0次

打开 ~/.zshrc 文件,在文件最后添加以下配置:

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

每次你打开终端的时候,如果 ~/.bash_profile 配置文件存在,则会自动加载里面的配置。这样可以使得多种 SHELL 之间共用一套配置。

相关文章

网友评论

      本文标题:Zsh 支持加载 .bash_profile 文件

      本文链接:https://www.haomeiwen.com/subject/igszyktx.html