Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: time-stamped zsh history
- X-seq: zsh-users 12054
- From: Artur Penttinen <arto-p@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: time-stamped zsh history
- Date: Fri, 19 Oct 2007 16:19:23 +0400
- In-reply-to: 1660000000249790992
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6a42eec70710190505k3fc2e723q58e8e6fdfb4bbb76@xxxxxxxxxxxxxx> 1660000000249790992
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