Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: profile prompt rendering time
- X-seq: zsh-users 21772
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: profile prompt rendering time
- Date: Wed, 13 Jul 2016 21:23:51 -0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+IPMBJxw0rd2puAB7vKcG0DHqNIqRDU8MDJgJ7JeJHI=; b=mJJLuSPgGybCEImPM1awZRQ+hkzqtWElOX/TtADnIkOyjIPDgUJSXwk724/qN/QGuV ljDmSM250Xqbre8ESC+SNdJvZuhvc9dgJFVpSOpWG4r7/44aln/dRN77mMGsKxA6Akmy vvwbuxs1bD5l0AxGASLrL2xIZWT4Sl4tWYRgX+WDJsT8iFG5H4mwV8+OysPx4wvtzxhF utd+njlPJIqTRwYqkbcpjlKQDtdu5zn/CrX+d3NJDWjEpI78p8tlnbJY9uniyyB98CUW NuhsdCuodaXboP7jJ/qXArBMYRjA43+eFBAkQjUbnKM5+QTtimBVuGetpiDYmAtGtTaa cQdg==
- In-reply-to: <160713164905.ZM22329@torch.brasslantern.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>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAEwkUWO7yrxptZChw7Q3F=u=0+Uwf+Frmzo24py3xvrK1=cTtA@mail.gmail.com> <20160713213713.GB75349@xenia> <160713164905.ZM22329@torch.brasslantern.com>
Awesome! Is there a way to do that but with the delta?
On Wed, Jul 13, 2016 at 8:49 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:
> On Jul 13, 2:37pm, Richo Healey wrote:
> }
> } You could do something fairly janky and just wrap your whole prompt in a
> } function that emits the prompt, and time(1)'s itself.
>
> Indeed,
>
> time ( print -P "$PS1" )
>
> might actually provide all the information you want. (You need the
> subshell because "time" on a built-in is a no-op.)
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author