Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: profile prompt rendering time
- X-seq: zsh-users 21771
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: profile prompt rendering time
- Date: Wed, 13 Jul 2016 16:49:05 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=DNheUGFOu05f+9PdKzeR4hGomP8ALPxtbfbFloqwcJY=; b=LA82T+3IY8AeB/S5ssJxkFKuk9ql+IrT8/9anN4pJbSeQSrGe6h6+8GBufXD4l68qd zGuTxFO56YlU0g+XSVWE3QJbOjpkC5GMXYqsBpfOkW7zcBVuzS6LPcXXWW2g5nMvJqXD Xm/Re6VInJSpp8H8PnZSps/yo1Yj6ikjMvF+XZKNQwAdmr3igonUPxCn/Db157jE8hRB 6T/967fYXYXi0AbWrA2vzVquXO96VBRKax4K1j0I72P2BKZxtD8mdrDE8DFbA1iMmL6u R3mKbXx/bWM9VbyK8PIS16tO/5Hz9GBwiUlr3QDDKKo97bvxVdRDGesBsnbXgpWo4FMQ cLLQ==
- In-reply-to: <20160713213713.GB75349@xenia>
- 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>
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