Sample Header Ad - 728x90

How does a Homebrew-installed Emacs get the same PATH variable as set in the shell?

3 votes
0 answers
312 views
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 via getenv PATH). However, I have no idea *why* this happens (because, as mentioned above, no shell should get started.)
Asked by halloleo (1497 rep)
Jan 25, 2024, 11:21 AM
Last activity: Sep 25, 2024, 05:22 PM