- Go to directory /etc/paths.d (yes, that's a directory) and create a file called MyNewApplication
- Edit the file MyNewApplication with the directory you want to include, i. e. /usr/local/MyNewApplication/bin. If you want to include more than one path of MyNewApplication, then add more lines (one line per path)
- Restart the Terminal
Friday, 29 February 2008
Modifying PATH in Leopard
Apple has (regrettably, in my opinion) changed the way to modify the bash PATH variable system-wide. The old way was to carefully edit the file /etc/profile. The new way is quite different. Suppose you have the application MyNewApplication in /usr/local and want to include the directory /usr/local/MyNewApplication/bin in the PATH. Then what you do is
Subscribe to:
Post Comments (Atom)
1 comment:
Do you know what system-wide means? Read before writing nonsense. I should trash your comment. Hope you'll read mine. Please learn how to read and write before commenting.
Best.
Daniele
Post a Comment