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

Re: Persistent history not working

Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>:
> * Frank Terbeck (Sat, 19 Jan 2008 13:23:45 +0100)
> > Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>:
> > > I have one Windows 2003 R2 SP1 Terminal Server running zsh under 
> > > Cygwin (all latest versions[1]). It uses the same .zshrc as all my 
> > > other installation but for some reason history is not saved across 
> > > sessions.

I didn't quite get this, when I first read your mail, sorry. Does this
mean, history saving does work for you on other operating systems? If
so, my babbling here is useless. :-)
See Bart's reply then.

> > > This is what I tried: deleted all zsh config files and set manually 
> > > "HISTFILE=~/.zsh_history". No success.
> > [...]
> > > What else could I do or try to find the reason for this behaviour?
> > 
> > Before looking any further, could you check if this FAQ entry helps?
> >     <http://zsh.sunsite.dk/FAQ/zshfaq03.html#l38>
> Yeah, I did that. As far as I remember HISTSIZE and HISTFILE have 
> defaults so they don't need to be set manually. But I definitely set 
> them in my .zshrc.

As for the default values:

% zsh -fc 'print -$SAVEHIST- -$HISTSIZE- -$HISTFILE-'
-0- -30- --

If you set HISTFILE and HISTSIZE, that's fine (and for HISTFILE it's
even required); As you can see however, $SAVEHIST is 0 by default,
which means, nothing will be saved.

Regards, Frank

In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925

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