Jiung-Wen / msdial

The tutorial for running MS-DIAL on Linux cluster
7 stars 6 forks source link

setting path on mac os #3

Open JoblessLoser opened 1 year ago

JoblessLoser commented 1 year ago

The correct way to set the path on Mac OS would be to create a file in the directory

/etc/paths.d

called MSDIAL

with a line containing each directory you want in the $PATH for this application. This adds the directory to the path of all shells in MacOS and supersedes most of the advice you find if you google how to add a directory to $PATH in MacOS (I'm not sure which version this was introduced in).

The MacOS convention (post M1) for both M1 & intel would be to install an application in a subdirectory of

/opt/

(This is where you will find applications such as X11, homebrew and anaconda3 if you have them installed)

and to set ownership of the files to root with group wheel, ensuring the application can be run but not altered.