From: "shirish शिरीष" <shirishag75@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: zsh_history not showing all the entries but some
Date: Fri, 5 Jan 2018 23:13:12 +0000 [thread overview]
Message-ID: <CADdDZRm=o25DjHBNfa9pYnpsgWT+Q774xhThTQm-DLJ+580LNg@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7YwfjVBbdHOUNDJR3Wa-=j2KACpSUYdUBoWEgk6kmZ_fA@mail.gmail.com>
at bottom :-
On 05/01/2018, Bart Schaefer <schaefer@brasslantern.com> wrote:
> 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.
>
Thank you bart for answering fast.
oh, that was the default thing, just saw
https://superuser.com/questions/519596/share-history-in-multiple-zsh-shell
which explains what is happening.
I just used unsetopt histignorealldups
and not it works, thank you
I still have yet to find out the other default values, maybe need to
change those too.
--
Regards,
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8
prev parent reply other threads:[~2018-01-05 23:13 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
2018-01-05 23:13 ` shirish शिरीष [this message]
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='CADdDZRm=o25DjHBNfa9pYnpsgWT+Q774xhThTQm-DLJ+580LNg@mail.gmail.com' \
--to=shirishag75@gmail.com \
--cc=schaefer@brasslantern.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).