我应该在 MacOS 上将 oc 二进制文件复制到哪里?

Where should I cp oc binary to on MacOS?

this documentation中说

unpack the archive and move the oc binary to a directory on your PATH

我试过 echo $PATH 并且它 returns:

bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

显然这里有多个路径,我应该将 cp oc 二进制文件移动到哪个路径?

/usr/local/bin 是用户或第三方可执行文件的通常选择。这样当你更新 OS.

时它就不会被清除

另请参阅:Where do you keep your own scripts on OSX? - 问题是关于脚本而不是二进制文件,但适用相同的逻辑。