Fixing PATH (and MANPATH) once and for all
Imported from the Apple Support Forums via the Wayback Machine 🔗
I think the list of directories in PATH should be:
/Users/cb/bin:
/opt/local/bin:
/opt/local/sbin:
/usr/local/bin:
/usr/bin:
/bin:
/usr/local/sbin:
/usr/sbin:
/sbin:
/usr/X11R6/bin:
/usr/local/teTeX/bin/powerpc-apple-darwin-current
Do you agree? Comments and suggestions welcome.
Background:
I am trying to sort thru the endless confusion and set up PATH (and MANPATH) right, once and for all. Every package I install seems to have its own idea of what these variables should be.
I could set up a wrapper script for every installed command - but some subsystems, like Aquamacs and Python, let you create and use subshells. If the PATH in your subshell isn't the same as the one you use every day in bash, you could create bugs which are nearly impossible to track down.
My solution is to create $HOME/.setShells.sh -- which sets a uniform set of paths (and which will probably rewrite man.conf in the bargain). But I want to make sure that I'm choosing the right baseline, which is what the list above is supposed to be.
I'd appreciate your thoughts and/or assistance.
4 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0