bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposed Prompt Escapes


From: Dennis Williamson
Subject: Re: Proposed Prompt Escapes
Date: Tue, 17 Nov 2015 16:23:32 -0600



On Tue, Nov 17, 2015 at 4:16 PM, Ángel González <angel@16bits.net> wrote:
While we are talking about new prompt escapes, I would love to be able
to put in the prompt escapes elapsed time values from the previous
command, so prefixing with time(1) could be redundant (if the intended resource was provided as an escape).

Regards


Do you mean something like:

PS1='$SECONDS '

(along with shopt -o promptvars)

--
Visit serverfault.com to get your system administration questions answered.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]