zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Exporting REPORTTIME data to ENVVARs instead of printing.
Date: Mon, 5 Oct 2015 11:31:09 -0700	[thread overview]
Message-ID: <151005113109.ZM19301@torch.brasslantern.com> (raw)
In-Reply-To: <CADef55pgC+ym697KLegbZeOM9sMq6j2s3H=R6Te=PozUStJZ8Q@mail.gmail.com>

On Oct 5,  2:23pm, Slava Barinov wrote:
} Subject: Exporting REPORTTIME data to ENVVARs instead of printing.
}
}   REPORTTIME feature only can print timings to terminal but I have a
}   great prompt with much information embedded and still having some
}   space to add this info.
}
}   My suggestion is to add possibility of exporting timings to envvars
}   instead of printing them to terminal.

It would be more in keeping with similar features if the values were
placed in an array or hash rather than in four separate variables.
Or in a single scalar but formatted with $TIMEFMT.

However, if the primary motivation is to include them in the prompt
string, a prompt substitution escape might be more appropriate.


  reply	other threads:[~2015-10-05 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-05 11:23 Slava Barinov
2015-10-05 18:31 ` Bart Schaefer [this message]
2015-10-06  0:41   ` Jan Larres

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=151005113109.ZM19301@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).