From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2951 invoked by alias); 2 Oct 2013 22:38:01 -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: X-Seq: 18016 Received: (qmail 25100 invoked from network); 2 Oct 2013 22:37:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at spodhuis.org designates 94.142.241.89 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201210; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=6OE/l8YPOgp5vvuNr++Kir8q7ySujkF/sBn6sADq4Mo=; b=W3mFewUa72NMaVFMu1U17TIF7SlUPFzdFwxsvfligx3pr/l340FIhYWP0gGSiC3tqRKLs3xVHjFmlOT65h6xUFAsOVv+3YrQyy35gDvKf1Fdet/mrJW5/UB5TipLOJlI7t2mGj1BpRfl+R16L0/fmcT+5OO/ezJUs+X7jJw9kME=; Date: Wed, 2 Oct 2013 18:19:46 -0400 From: Phil Pennock To: shawn wilson Cc: Zsh Users Subject: Re: zshrc alias Message-ID: <20131002221946.GA42077@redoubt.spodhuis.org> Mail-Followup-To: shawn wilson , Zsh Users References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/0x3903637F.asc On 2013-10-02 at 15:37 -0400, shawn wilson wrote: > Is there a way to see what zsh is doing when it loads the rc file? I keep this at the top of my .zshenv file and uncomment the first line when I want to debug something: ----------------------------8< cut here >8------------------------------ #TRACE_ZSH_TIME=t TRACE_ZSH=t TRACE_ZSH_FILE=/tmp/pdp-zsh.$$.log [[ -n $TRACE_ZSH_PROF ]] && zmodload -i zsh/zprof [[ -n $TRACE_ZSH_TIME ]] && PS4='+[%D{%M:%S}]%N:%i> ' if [[ -n $TRACE_ZSH ]]; then [[ -n "$TRACE_ZSH_FILE" ]] && exec 2> "${TRACE_ZSH_FILE}" setopt xtrace fi ----------------------------8< cut here >8------------------------------ Yes, you lose stderr to a file, I can accept that for the purpose of this debugging. -Phil