zsh-users
 help / color / mirror / code / Atom feed
From: "Andreas Kusalananda Kähäri" <andreas.kahari@abc.se>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Peng Yu <pengyu.ut@gmail.com>, zsh-users <zsh-users@zsh.org>
Subject: Re: Observe what profiles are loaded?
Date: Fri, 6 Sep 2019 20:14:50 +0200	[thread overview]
Message-ID: <20190906181450.GA61162@eeyore.my.domain> (raw)
In-Reply-To: <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@gmail.com> 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

  reply	other threads:[~2019-09-06 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-06 15:46 Peng Yu
2019-09-06 17:49 ` Bart Schaefer
2019-09-06 18:14   ` Andreas Kusalananda Kähäri [this message]
2019-09-06 18:45     ` Peng Yu
2019-09-06 20:29       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190906181450.GA61162@eeyore.my.domain \
    --to=andreas.kahari@abc.se \
    --cc=pengyu.ut@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).