adding ~/bin directory in your path [closed]

我怕爱的太早我们不能终老 提交于 2020-12-25 01:04:25

问题


I need to add ~/bin directory in your path.

But I am not sure what the actual command for this is, I know it goes in my .bash_profile

Does anyone know this, or a tutorial on how to set up a new .bash_profile for a terminal on a new mac (UNIX)


回答1:


Add this to .bash_profile:

export PATH="$PATH":~/bin

If you don't have a .bash_profile, just create it.



来源:https://stackoverflow.com/questions/16366986/adding-bin-directory-in-your-path

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