|
From: | Evan Gates |
Subject: | Re: [PATCH] prompt: add \m, PROMPTTIMEFORMAT, shopt prompt_time_all |
Date: | Tue, 26 Nov 2024 15:01:20 -0800 |
User-agent: | alot/0.11.dev133+g2c32c68c.d20240830 |
Quoting Evan Gates (2024-09-16 19:03:21) > Expand \m in prompts according to PROMPTTIMEFORMAT for the last > timed command. This is an easy way to get the result of time without > redirections by using @P expansions. > > Add shopt prompt_time_all to time every command run. Used in combination > with \m the time of the previous command can be added to PS1, or every > command in a script can be timed implicitly. Any interest in this Chet? I just rebased on top of some new devel commits to build on another machine so it came to mind and I realized there was no response. I have quite enjoyed having the time of the last command in my prompt.
[Prev in Thread] | Current Thread | [Next in Thread] |