Search code examples
linuxshellzsh

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?


Solution

  • You could do a

    setopt SOURCE_TRACE
    

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