shell profile

A startup file the shell runs when it opens, used to set PATH and other settings for every session.

In more detail

For zsh on a Mac, a login shell reads ~/.zprofile, which is where the python.org installer and Homebrew add their PATH lines. Changes take effect in new terminal windows, not ones already open. Bash uses ~/.bash_profile and ~/.bashrc instead.

Example

eval "$(/opt/homebrew/bin/brew shellenv)"

Related terms

Taught in

References