On start of an interactive shell, is there something that gets called between ~/.zshenv and ~/.zshrc? My PATH is getting changed between them
1
vote
1
answer
41
views
According to the docs, the order of .zsh files is
.zshenv
.zprofile
.zshrc
.zlogin
As suggested by the docs, I put my $PATH in .zshenv. I echo it there and I can see it.
But something is changing $PATH by the time .zshrc is called. I put an echo $PATH
at the top of it and I see it has changed.
So what could be changing it?
Mac OS btw
Asked by Paul C
(1005 rep)
Aug 1, 2025, 09:42 PM
Last activity: Aug 2, 2025, 07:58 AM
Last activity: Aug 2, 2025, 07:58 AM