原文地址:https://blog.csdn.net/gzw19961018/article/details/103949308
看一下当前终端启动的是bash 还是zsh
ps -p $$
在命令行上运行来确定你实际上是不是在使用bash shell。- 如果你是在zsh中,这意味着你应该编辑的是 ~/
.zprofile
。 将环境变量从.bash_profile复制到
到.zprofile
原文地址:https://blog.csdn.net/gzw19961018/article/details/103949308
看一下当前终端启动的是bash 还是zsh
ps -p $$
在命令行上运行来确定你实际上是不是在使用bash shell。.zprofile
。将环境变量从.bash_profile复制到
到.zprofile