Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [RFC PATCH 3/3] FAQ: sync newuser-install



Felipe Contreras wrote on Wed, 24 Aug 2022 17:32 +00:00:
> On Wed, Aug 24, 2022 at 4:12 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Felipe Contreras wrote on Wed, 24 Aug 2022 04:31 +00:00:
> > > Better to use the same HISTFILE in both.
> >
> > Agreed, but...
> >
> > > +++ b/Etc/FAQ.yo
> > > @@ -1629,7 +1629,7 @@ label(321)
> > >    In zsh, you need to set the location where you want the history to be written
> > >    with tt($HISTFILE).  For example,
> > >    verb(
> > > -    HISTFILE=~/.zsh_history
> > > +    HISTFILE=~/.histfile
> >
> > The default name should include "zsh" somewhere for coexistence with
> > other programs.  So, I'd rather keep the FAQ as-is.
> 
> I agree having a '.zsh_' prefix is more consistent with other
> programs, but then that's what should be in the newuser-install
> script, no?
> 
> I actually think this should be the default, no need for *everyone* to
> specify this.

Setting HISTFILE does /two/ things:

1. Enable saving history to disk
2. Specify the name of the file history would be stored in

Would it be easier to consense here if we could separate these two
functions?  E.g., if history saving remained off by default but we had
a way for a user to say "Please save history and use the default filename
for that"?

Cheers,

Daniel




Messages sorted by: Reverse Date, Date, Thread, Author