help-bash
[Top][All Lists]
Advanced

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

Re: show command time in history


From: Bipul kumar
Subject: Re: show command time in history
Date: Tue, 28 Jan 2020 13:19:43 +0530

Hi,

I think to add timestamp in history command , one need to edit History
Library.
i.e

       typedef void * histdata_t;
>
>        typedef struct _hist_entry {
>          char *line;
>          char *timestamp;
>          histdata_t data;
>        } HIST_ENTRY;
>

source man page

I hope that would help out to you.
Thank you

    Respectfully,
    Bipul
    PUBLIC KEY <http://ix.io/1nWf>
    97F0 2E08 7DE7 D538 BDFA  B708 86D8 BE27 8196 D466
                    ** Please excuse brevity and typos. **


On Tue, Jan 28, 2020 at 9:51 AM Peng Yu <address@hidden> wrote:

> Hi,
>
> I'd like to show the time when the command was run in history. The
> `history` command does not show this info. Is there a way to do so in
> bash? Thanks.
>
> --
> Regards,
> Peng
>
>


reply via email to

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