mac 下 ~/.bash_profile无效

1. 问题

在配置.bash_profile时候项目不生效。

2. 解决思路

我们使用的shell是zsh,不会自动加载.bash_profile,而是自动加载~/.zprofile文件。这里可以在.zprofile文件加上这么一段

if [ -f ~/.bash_profile ]; then
    source ~/.bash_profile
fi
发布了1089 篇原创文章 · 获赞 451 · 访问量 136万+

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/104764973