I am running homebrew on an M2 Mac mini under macOS Ventura.
I use Emacs.app
from the railwaycat/emacsmacport/emacs-mac
cask and when I check in Emacs the inherited PATH
environment variable, Emacs returns something with /opt/homebrew/bin
at the beginning.
I start Emacs.app via double-clicking, so I assume no terminal shell gets started for this. (Plus I do not use the exec-path-from-shell
package in Emacs.)
Where in the startup process does homebrew's bin
directory get added? I looked at:
/etc/paths.d
, but homebrew doesn't add any entry there.~/.zprofile
and homebrew does add stuff in there. This stuff shows up in Emacs (when I check in Emacs viagetenv
PATH
). However, I have no idea why this happens (because, as mentioned above, no shell should get started.)
(getenv "PATH")
in the scratch buffer or by running a shell within emacs? In the first case, did you chenck the Emacs init file?