From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=FROM_EXCESS_BASE64, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 662b7b0b for ; Fri, 6 Sep 2019 18:15:38 +0000 (UTC) Received: (qmail 4327 invoked by alias); 6 Sep 2019 18:15:31 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24226 Received: (qmail 2795 invoked by uid 1010); 6 Sep 2019 18:15:31 -0000 X-Qmail-Scanner-Diagnostics: from hekla.abc.se by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25559. spamassassin: 3.4.2. Clear:RC:0(62.80.200.187):SA:0(-1.9/5.0):. Processed in 1.472613 secs); 06 Sep 2019 18:15:31 -0000 X-Envelope-From: andreas.kahari@abc.se X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at abc.se designates 62.80.200.187 as permitted sender) Date: Fri, 6 Sep 2019 20:14:50 +0200 From: Andreas Kusalananda =?iso-8859-1?B?S+Ro5HJp?= To: Bart Schaefer Cc: Peng Yu , zsh-users Subject: Re: Observe what profiles are loaded? Message-ID: <20190906181450.GA61162@eeyore.my.domain> Mail-Followup-To: Bart Schaefer , Peng Yu , zsh-users References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) On Fri, Sep 06, 2019 at 10:49:23AM -0700, Bart Schaefer wrote: > On Fri, Sep 6, 2019 at 8:47 AM Peng Yu 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