from zsh document,
~/.zprofile should only be sourced at login shell, and should NOT be sourced at every interactive session (for example, a new tab in a terminal).
- I am running MacOS Big Sur 11.2.3 (20D91).
But I can confirm that my
~/.zprofile is sourced at every interactive session (a new tab). Why is that? Is this a bug? How to stop this incorrect behavior?