zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "shirish शिरीष" <shirishag75@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: zsh_history not showing all the entries but some
Date: Fri, 5 Jan 2018 14:32:19 -0800	[thread overview]
Message-ID: <CAH+w=7YwfjVBbdHOUNDJR3Wa-=j2KACpSUYdUBoWEgk6kmZ_fA@mail.gmail.com> (raw)
In-Reply-To: <CADdDZR=pnm1M=Jm1pxsXMdz3+4_CSCyCaTTXjmwD4e0U+3CQSA@mail.gmail.com>

On Fri, Jan 5, 2018 at 2:07 PM, shirish शिरीष <shirishag75@gmail.com> 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.


  reply	other threads:[~2018-01-05 22:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05 22:07 shirish शिरीष
2018-01-05 22:32 ` Bart Schaefer [this message]
2018-01-05 23:13   ` shirish शिरीष

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7YwfjVBbdHOUNDJR3Wa-=j2KACpSUYdUBoWEgk6kmZ_fA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=shirishag75@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).