Saturday 25 August 2018

macos - Change Path for OS X


I am not asking how to change the path for mac OS X terminal windows.


I am having this problem, and I’d like to be able to launch by clicking. It does work if I open it in a terminal window (since the path is set correctly).


I have tried adding a path variable to ~/.MacOSX/environment.plist but to no avail.


How can I change the path for the current user in Mac OS X?



Answer



Add a file with your desired path in it (e.g. /opt/local/bin) to the directory /etc/paths.d. This method is how TeXLive does it. You can also add your manpath to /etc/manpaths.d this way.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...