Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC PATCH 3/3] FAQ: sync newuser-install
- X-seq: zsh-workers 50577
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install
- Date: Fri, 2 Sep 2022 14:50:29 +0200
- Archived-at: <https://zsh.org/workers/50577>
- In-reply-to: <20220902091857.GH5920@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <CAHYJk3QMc73SjZq47C-pX=zRkt+GHkvr7Xyg3CcPzfH+3Jg0EA@mail.gmail.com> <CAH+w=7b9i0xLb+hRuGyod=JOCnFDT3=tTEb_ihWU7JVftUTm7A@mail.gmail.com> <CAMP44s2tW9dG9zZoNFjvx7G_CW=fr2c9GoSK9fHa4=NCbXnEDw@mail.gmail.com> <c751aa82-e303-4358-b39c-bed85cea3e48@www.fastmail.com> <CAMP44s0+HStHBFsjA28dJfZwNHOaosHTBVo4BjFgN5BbuMgGTQ@mail.gmail.com> <CAHYJk3R1KnifSnjaUgZW0nGsBaSD0_C+oFaC6t-TmrD7BTxF=A@mail.gmail.com> <CAN=4vMqhdRsFJ9MYquVxs=p6YkzUJnWJUhi=-2UmA0+Y4mqGYQ@mail.gmail.com> <CAMP44s3tSxzGCwefMA9n_uOxyBi75Pwc4+0j7uAVg1e3njJH6w@mail.gmail.com> <CAHYJk3QVkP6kyM4g9dO_VOruUKM9f=NhP0HPDT2mSQq79v6v1w@mail.gmail.com> <20220902091857.GH5920@tarpaulin.shahaf.local2>
On 2022-09-02 09:18:57 +0000, Daniel Shahaf wrote:
> Mikael Magnusson wrote on Fri, Sep 02, 2022 at 05:46:12 +0200:
> > On 9/2/22, Felipe Contreras <felipe.contreras@xxxxxxxxx> wrote:
> > > It is unreasonable to force absolutely every new user to set these
> > > options just to get started.
> >
> > "Paste these lines in .zshrc to enable history" is not more
> > complicated with 3 lines than 1, however much you want to argue that
> > it is. They still need to find the line(s) to copy in the first place
> > (or god forbid, read the documentation).
>
> Copy-pasting three lines is as easy as one, sure. /Understanding/ them,
> however, is a different kettle of fish. If one has set three special
> variables, then one needs to read three zshparam(1) entries rather than
> one.
Isn't $SAVEHIST equal to $HISTSIZE in most configurations?
In such a case, couldn't a negative value for $SAVEHIST mean that
it should be regarded as SAVEHIST=$HISTSIZE (dynamically)?
Then I think that -1 could be the default value for SAVEHIST.
So only HISTFILE and HISTSIZE would be needed in the .zshrc,
and they are self-explanatory for the end user.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author