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