文件位置:
~/.bash_profile
创建文件
touch ~/.bash_profile
查看文件
open -t ~/.bash_profile
生效环境变量
source ~/.bash_profile
环境变量追加
向前追加
export PATH="位置:$PATH"
向后追加
export PATH="$PATH:位置"
文件位置:
~/.bash_profile
创建文件
touch ~/.bash_profile
查看文件
open -t ~/.bash_profile
生效环境变量
source ~/.bash_profile
环境变量追加
向前追加
export PATH="位置:$PATH"
向后追加
export PATH="$PATH:位置"