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

Re: time-stamped zsh history



sam reckoner <sam.reckoner@xxxxxxxxx>:
> Is it possible to set up zsh history so that the date and time of the
> command that appears in the history is reported?

To save date information to $HISTFILE:
% setopt extendedhistory

To show additional information about history events:
% history -E
% history -i
% history -D

See the zshoptions(1) and zshbuiltins(1) (the 'fc' builtin) for
details.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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