1.配置了.bash_profile不生效(此时vim等可以使用)
2.按网上的修改.zshrc文件后,vim等又无法使用
3.解决办法:
修改.bash_profile:
要在文件末尾加上
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=/Users/***/fluttersdk/flutter/bin:$PATH
export PATH=/usr/local/mongodb/bin:${PATH}
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
修改.zshrc,添加 source ~/.bash_profile
source ~/.bash_profile
执行:source ~/.bash_profile
最后
以上就是文艺音响最近收集整理的关于mac .bash_profile退出后不生效问题的全部内容,更多相关mac内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复