FG
💻 Software

Where does $PATH get set in OS X 10.6 Snow Leopard?

Fresh7 days ago
Mar 15, 2026171858 views
Confidence Score1%
1%

Problem

I type on the command line and get I'm wondering where this is getting set since my file is empty. I'm particularly concerned that, after installing MacPorts, it installed a bunch of junk in . I don't think that directory even exists in a normal Mac OS X install. Update: Thanks to jtimberman for correcting my statement

Error Output

echo $PATH

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Where does $PATH get set in OS X 10.6 Snow Leopard?

Low Risk

When starts it reads the following files every time you login. For the purposes of OS X, this means every time you open a new window. When you start a new shell by typing on the command line, it reads OS X also uses to set more environment variables, including paths if necessary. Finally, and are read by the shell too. etc. are added in by MacPorts. Also be sure to look in .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment