Skip to content
Advertisement

Show all sourced files in ZSH

I want to see which files got sourced while starting the Z-shell. Does it even keep track and if yes is there a way to list all the files?

Advertisement

Answer

You could do a

setopt SOURCE_TRACE

at the beginning of the very first file which gets sourced. See man zshoptions.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement