zsh -o SOURCE_TRACE
Do manual do zsh ( zshoptions(1)
):
SOURCE_TRACE
If set, zsh will print an informational message announcing the name of each file it loads. The format of the output is similar to that for the XTRACE option, with the message
<sourcetrace>
. A file may be loaded by the shell itself when it starts up and shuts down (Startup/Shutdown Files) or by the use of the ‘source
’ and ‘dot
’ builtin commands.