From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id RAA05623 for ; Mon, 26 Jun 1995 17:00:53 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA22872 (5.65c/Gatech-10.0-IDA for ); Mon, 26 Jun 1995 02:55:57 -0400 Received: by math (5.x/SMI-SVR4) id AA06116; Mon, 26 Jun 1995 02:52:11 -0400 Old-Return-Path: Resent-Date: Mon, 26 Jun 1995 02:49:35 -0400 Old-Return-Path: Date: Mon, 26 Jun 1995 02:49:35 -0400 From: guthrie@math.upenn.edu (John Guthrie) Posted-Date: Mon, 26 Jun 1995 02:49:35 -0400 Message-Id: <199506260649.CAA07302@hans.math.upenn.edu> To: zsh-users@math.gatech.edu Subject: Re: How can I get history listing to include time info? Resent-Message-Id: <"xyhOQ2.0.HV1.1abxl"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/27 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Jose Unpingco writes: > In csh, typing > > history > > gives a list of the last few numbered commands along with a start and stop > time of each command. > > In zsh, history gives the last few numbered commands but no time info. > I couldn't find an option in the manual for turning on time info. > > Anybody know how to do this w/out losing some functionality? In zsh, another command for listing the history is fc -l. (Fc is a command that lets you do several things with the history.) If you add on the flags -d, -f, -E, or -D, then you get time info. From the man page: Also when listing, -d prints timestamps for each command, and -f prints full time-date stamps. Adding the -E flag causes the dates to be printed as `dd.mm.yyyy'. With the -D flag, fc prints elapsed times. Hope this helps. John Guthrie guthrie@math.upenn.edu