Another Leopard feature: paths.d

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:


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 to “Another Leopard feature: paths.d

  1. Pingback: Leopard: gestione del search path -