Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Exporting REPORTTIME data to ENVVARs instead of printing.
- X-seq: zsh-workers 36785
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Exporting REPORTTIME data to ENVVARs instead of printing.
- Date: Mon, 5 Oct 2015 11:31:09 -0700
- In-reply-to: <CADef55pgC+ym697KLegbZeOM9sMq6j2s3H=R6Te=PozUStJZ8Q@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author