Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yangwendaxia/21d9aa7f787676ce51355021e522d34f to your computer and use it in GitHub Desktop.
Save Yangwendaxia/21d9aa7f787676ce51355021e522d34f to your computer and use it in GitHub Desktop.
Mac 环境变量设置

Mac 环境变量设置(Git 安装为例)

打开环境变量配置文件

vim ~/.bash_profile

添加GIT安装路径到当前环境变量

export PATH ="/usr/local/bin:$PATH" ...

让环境变量生效

source ~/.bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment