Opened 13 years ago

Last modified 13 years ago

#30458 closed enhancement

Better PATH setup — at Initial Version

Reported by: ydeedido@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.0.0
Keywords: Cc:
Port:

Description

There must be a reason for doing things the way they are but I prefer to add the path to the /etc/paths.d directory (instead of modifying the user profile which only works for that user). Since macports is installed under /opt/include which is not a user specific directory, would it not be better to make the PATH environment work for all users? (I often login as root)

Anyway, the suggestion is to create a file called 99_MacPorts under /etc/paths.d which only contains two lines: /opt/local/bin /opt/local/sbin When one wants to un-install MacPorts, simply delete that file.

I like to name all my files under /etc/paths.d with a number so the paths get added by numerical order. In my case 99_MacPorts is parsed last and thus the path is appended at the end of my PATH variable though I seem to understand some people like it first? Then name it 01_MacPorts.

Anyway, just a suggestion.. unless I'm missing something.

Change History (0)

Note: See TracTickets for help on using tickets.