- .bash_profile & .zshrc文件编写
#引用其他环境变量配置文件
source ~/.bash_profile
export PATH="$PATH":"/Users/superfool/develop/flutter/bin"
export PATH="$PATH":"/Users/superfool/develop/flutter/.pub-cache/bin"
export PATH="$PATH":"/Users/superfool/develop/flutter/bin/cache/dart-sdk/bin"
- 添加环境变量后使用
source $HOME/.zshrc
刷新当前终端窗口
网友评论