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

Re: zsh_history not showing all the entries but some



On Fri, Jan 5, 2018 at 2:07 PM, shirish शिरीष <shirishag75@xxxxxxxxx> wrote:
>
> I don't know why but .zsh_history only shows a few entries and not all.
>
>     shirish@debian ~ % history

       history
              Same as fc -l.

       fc -l [ -nrdfEiD ] [ -t timefmt ] [ -m match ]
             [ old=new ... ] [ first [ last ] ]

              If first is not specified, it will be set to -1 (the most recent
              event), or to -16 if the -l flag is given.  If last is not spec-
              ified,  it  will  be  set  to  first, or to -1 if the -l flag is
              given.

So you should be seeing the 16 most recent entries, minus any that are
duplicates (because you have histignorealldups set).

Note that first and last are relative to the pre-assigned history
event numbers, not applied to a count of entries.



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