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

前端 未结 6 1414
臣服心动
臣服心动 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:11

    I tend to find this neat

    sudo mkdir -p /etc/paths.d   # was optional in my case
    echo /usr/local/git/bin  | sudo tee /etc/paths.d/mypath1
    

提交回复
热议问题