RVM installation missing $PATH

为君一笑 提交于 2019-12-04 06:31:44

It's not an error and the fix is to prepend $PATH to your export PATH= line, so you should have:

export PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Cody/.rvm/bin

The message is displayed to you because it is bad practice to hard code PATH, it breaks any dynamic configuration that is done for example in /etc/profile.d/*.sh, here is a bug for OH-MY-ZSH => https://github.com/robbyrussell/oh-my-zsh/pull/1359

To fix it just remove the line, it should never be there.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!