.bash_profile & .zshrc 环境变量配置

  1. .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"

  1. 添加环境变量后使用source $HOME/.zshrc刷新当前终端窗口

你可能感兴趣的:(.bash_profile & .zshrc 环境变量配置)