在优胜美地设置环境变量 [英] Setting environment variables in Yosemite

查看:118
本文介绍了在优胜美地设置环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Yosemite中修改PATH等环境变量的正确方法是什么?

What is the proper way to modify environment variables like PATH in Yosemite?

这是这个问题设置OS X?中的环境变量,但专门针对优胜美地,因为它不再工作。

This is this question Setting environment variables in OS X? but specifically for yosemite since it doesn't work anymore.

推荐答案

编辑〜/ .bash_profile

将这样一行添加到 bash_profile 应该这样做:

Adding a line like this to bash_profile ought to do it:


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

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

这篇关于在优胜美地设置环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆