zsh-users
 help / color / mirror / code / Atom feed
From: shawn wilson <ag4ve.us@gmail.com>
To: shawn wilson <ag4ve.us@gmail.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: zshrc alias
Date: Wed, 2 Oct 2013 18:27:59 -0400	[thread overview]
Message-ID: <CAH_OBicsE=pGCO6A33xXee9uxY7g=AdEsnSgrCigjG+_z3Vnqg@mail.gmail.com> (raw)
In-Reply-To: <20131002221946.GA42077@redoubt.spodhuis.org>

Very cool. Thanks.

On Wed, Oct 2, 2013 at 6:19 PM, Phil Pennock
<zsh-workers+phil.pennock@spodhuis.org> wrote:
> 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


      reply	other threads:[~2013-10-02 22:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02 19:37 shawn wilson
2013-10-02 19:45 ` Jérémie Roquet
2013-10-02 19:54   ` shawn wilson
2013-10-02 20:09     ` Jérémie Roquet
2013-10-02 22:19 ` Phil Pennock
2013-10-02 22:27   ` shawn wilson [this message]

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='CAH_OBicsE=pGCO6A33xXee9uxY7g=AdEsnSgrCigjG+_z3Vnqg@mail.gmail.com' \
    --to=ag4ve.us@gmail.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).