How to add /usr/local/bin in $PATH on Mac

前端 未结 6 1428
臣服心动
臣服心动 2020-12-07 08:39

When I do \'open .profile\' in the terminal I have the following:

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

Now I installed node.js for Mac and

6条回答
  •  渐次进展
    2020-12-07 09:21

    To make the edited value of path persists in the next sessions

    cd ~/
    touch .bash_profile
    open .bash_profile
    

    That will open the .bash_profile in editor, write inside the following after adding what you want to the path separating each value by column.

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

    Save, exit, restart your terminal and enjoy

提交回复
热议问题