Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Observe what profiles are loaded?
- X-seq: zsh-users 24226
- From: Andreas Kusalananda Kähäri <andreas.kahari@xxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Observe what profiles are loaded?
- Date: Fri, 6 Sep 2019 20:14:50 +0200
- Cc: Peng Yu <pengyu.ut@xxxxxxxxx>, zsh-users <zsh-users@xxxxxxx>
- In-reply-to: <CAH+w=7a5xLs29TGmiGvuzmx2N3jKoP-eZk7DNupoC7TGTL=t9w@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Peng Yu <pengyu.ut@xxxxxxxxx>, zsh-users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABrM6wnqGu+yaQAg3hfvhYaG0OKvAL0svbqRD1ZHsKAnzcRP1g@mail.gmail.com> <CAH+w=7a5xLs29TGmiGvuzmx2N3jKoP-eZk7DNupoC7TGTL=t9w@mail.gmail.com>
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