Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zshrc alias
- X-seq: zsh-users 18016
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: shawn wilson <ag4ve.us@xxxxxxxxx>
- Subject: Re: zshrc alias
- Date: Wed, 2 Oct 2013 18:19:46 -0400
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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=;
- In-reply-to: <CAH_OBiektUO2yU74bwSyqi0CSsX1KLbODGugnxpL_RqAtr2h9Q@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>
- Mail-followup-to: shawn wilson <ag4ve.us@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/0x3903637F.asc
- References: <CAH_OBiektUO2yU74bwSyqi0CSsX1KLbODGugnxpL_RqAtr2h9Q@mail.gmail.com>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author