From: Dominik Vogt <dominik.vogt@gmx.de>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: SSD-friendly history
Date: Thu, 6 Oct 2022 00:19:10 +0100 [thread overview]
Message-ID: <Yz4Q7heV7qSUD0ik@localhost> (raw)
In-Reply-To: <CAH+w=7Y1_9Y83pmzj7j0tEBRF25atwZ1Owp1kQY_xLL8C_jh6Q@mail.gmail.com>
On Wed, Oct 05, 2022 at 03:50:43PM -0700, Bart Schaefer wrote:
> On Wed, Oct 5, 2022 at 2:34 PM Dominik Vogt <dominik.vogt@gmx.de> wrote:
> > I'd really like to have a mechanism that appends to the history
> > until some maximum size is reached and then truncates it to some
> > much smaller size
>
> Setting INC_APPEND_HISTORY will cause the file to be rewritten only
> when it reaches 20% larger than SAVEHIST. There's no option to make
> that greater than 20% at this point.
>
> However, this would be a reason to make SAVEHIST a lot larger than
> HISTSIZE.
Disk space is not an issue. So, if I set
SAVEHIST=120000
HISTSIZE=100000
Then only 100.000 lines are loaded when the shell starts?
--
But how does this interact with duplicate handling, especially
with HIST_EXPIRE_DUPS_FIRST?
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
next prev parent reply other threads:[~2022-10-05 23:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-05 21:34 Dominik Vogt
2022-10-05 22:50 ` Bart Schaefer
2022-10-05 23:19 ` Dominik Vogt [this message]
2022-10-06 6:10 ` Bart Schaefer
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=Yz4Q7heV7qSUD0ik@localhost \
--to=dominik.vogt@gmx.de \
--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).