If you use the terminal and use MySQL or open source packagers such as MacPorts or Fink, you’ve probably had to edit your shell startup script to set the command search path so you can access the new commands.
Leopard makes it much easier - simply place a file in /etc/paths.d listing the additional paths you’d like added to your command search path. For example, if you use MySQL, you should create /etc/paths.d/mysql containing the following:
/usr/local/mysql/bin
No more editing .profile or .bashrc, and it’s available to all user accounts automatically.
Thanks to SysArchitects for bringing this to my attention.


2 responses so far ↓
1 emil // Nov 19, 2007 at 4:39 pm
I found this in /etc today, and it’s great, no risk to add things to files created by the system that you forget you did
2 Leopard: gestione del search path - ReFactor.it // Nov 26, 2007 at 3:25 am
[...] In queste directories è possibile aggiungere dei file che elencano ulteriori percorsi di ricerca. Ad es. se voglio aggiungere gli eseguibili di mysql non faccio altro che aggiungere il file /etc/paths.d/mysql, al cui interno elencherò dove cercare gli eseguibili. # [...]