also even though this diagram is so complicated it doesn’t talk about how the shell is used differently on Linux vs Mac, like in a Linux desktop (AFAIK) your window manager will often run a login shell when you login to the system. So you can use .profile to set up PATH so that it’ll work inside graphical applications
but I don’t think that happens on a Mac