为OS X增加环境变量

1.创建并以 TextEdit 的方式打开 ~/.bash_profile 文件
touch ~/.bash_profile;
open -t ~/.bash_profile
2.新增环境变量
export PATH="$HOME/.rbenv/bin:$PATH"
3.让以上所做的配置生效
source ~/.bash_profile
posted @ 2014-09-26 11:23  静候良机  阅读(174)  评论(0编辑  收藏  举报