Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: time-stamped zsh history



19.10.07, 16:11, Peter Stephenson (pws@xxxxxxx):

> "sam reckoner" wrote:
> > Is it possible to set up zsh history so that the date and time of the
> > command that appears in the history is reported?
> I'm not sure where you want it reported, but it sounds like you need
> "setopt extendedhistory".

  and then:

    # perl -lne 'm#: (\d+):\d+;(.+)# && printf "%s :: %s\n",scalar localtime $1,$2' $HISTFILE

--
wbw, artur



Messages sorted by: Reverse Date, Date, Thread, Author