Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Observe what profiles are loaded?



On Fri, Sep 06, 2019 at 10:49:23AM -0700, Bart Schaefer wrote:
> On Fri, Sep 6, 2019 at 8:47 AM Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
> >
> > It describes what files are loaded by zsh. But I like to monitor the
> > progress in action. Is there a way to print the file whenever a file
> > is loaded? Thanks.
> 
> In ~/.zshenv, add
> 
> setopt SOURCE_TRACE
> 
> This will miss /etc/zshenv but report everything else.  This is a
> fairly recent option, older versions do not have it.

Starting the shell with

    zsh -o SOURCE_TRACE

should cover /etc/zshenv



Messages sorted by: Reverse Date, Date, Thread, Author