ZSH script ordering
The following scripts run in order for the setup of a zsh shell.
.zshenvis always sourced.zprofileruns for login shells.zshrconly runs in interactive shells. Only include setup for interactive shells here-
.zloginruns for login shells. Much like.zprofile, but the shell can be considered fully set up -
.zlogoutruns to teardown anything set up in.zlogin
Login shells
A login shell is either that initially logged into or accessed with ssh.
A notable exception therefore are terminal sessions launched through the terminal apps in any UI session.
For my usage, I find this to be inconvenient, so I will look for and enable a setting to launch these terminal sessions as login shells.