跳到主要内容

环境变量

vi ~/.bash_profile

# 添加到开头
export PATH=/Users/bin:$PATH
# 添加到结尾
export PATH=$PATH:/Users/bin

立即生效

source ~/.bash_profile