Open the Terminal application. It can be found in the Utilities directory inside the Applications directory.
Type the following: echo 'export PATH=YOURPATHHERE:$PATH' >> ~/.profile, replacing "YOURPATHHERE" with the name of the directory
您想要添加。请确保使用“ > >”而不是“ >”。