Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh_history not showing all the entries but some
- X-seq: zsh-users 23047
- From: shirish शिरीष <shirishag75@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: zsh_history not showing all the entries but some
- Date: Fri, 5 Jan 2018 23:13:12 +0000
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Z4OjailV5hayWVuJEaaX0BFj2pJTB/anwSpkH1fI0tw=; b=I0N0bbYbuFQk087yc45KnQmwButv733O2sKelufW1MrQKeAncGEgFUeEsbcsHDFloy GNMpnmPhXtTpmeJBBqXOCjl5V6uqtOUA84PgLkFVwVKcsuVDyMMlCmB7jCCQ9SB+YQBm CXbBY70JzuXcx3uvsrArlX2WPslzcuTv6PQ6Lg38kW2tWSEy0LvMvkVFqxk/SfI3ptde daS0mMgAsdMu4dHyU7q4URFjdNbNq3/19NVrewC9L0Wp4LWz6ZEyee8bvy/JIEdBIYaP d6Bgyr1krrbBrRBVS1LL/ec6s4OQAUr/VPGai7qm+mcXzwLTlY15tUuwOHj3ELDp7vIV XDJQ==
- In-reply-to: <CAH+w=7YwfjVBbdHOUNDJR3Wa-=j2KACpSUYdUBoWEgk6kmZ_fA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADdDZR=pnm1M=Jm1pxsXMdz3+4_CSCyCaTTXjmwD4e0U+3CQSA@mail.gmail.com> <CAH+w=7YwfjVBbdHOUNDJR3Wa-=j2KACpSUYdUBoWEgk6kmZ_fA@mail.gmail.com>
at bottom :-
On 05/01/2018, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 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.
>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author