macOS

Where Is the macOS PATH Config?

macOS /etc/paths, paths.d and shell PATH loading order.

Last updated

macOS builds default PATH from /etc/paths plus drop-in files in paths.d, layered under shell rc files afterward. Installer tools add drop-ins instead of editing the main file.

Prefer paths.d drop-ins over editing /etc/paths since updates preserve the folder. Shell rc files override both, so check the full chain when binaries mismatch.

Where macOS stores this, by platform

macOS
/etc/paths

System PATH entries one per line with extra files in /etc/paths.d read alongside. Shells layer ~/.zprofile and ~/.zshrc on top. Validate with echo $PATH in a fresh login shell after edits.

Frequently asked questions

Why does Terminal ignore my PATH edit?

Shell rc files override the system files above. Match the edit layer to where the session actually loads.

How do apps add themselves to PATH on macOS?

Through drop-in files in /etc/paths.d beside the main file above. One file per tool keeps uninstalls clean.

Notice an outdated path? Let us know.