Zsh Mailing List Archive
Messages sorted by:
Re: Persistent history not working
- X-seq: zsh-users 12462
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Persistent history not working
- Date: Sat, 19 Jan 2008 21:37:24 +0100
- In-reply-to: <fmt1pl$2cp$1@xxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <fmspqv$9l2$1@xxxxxxxxxxxxx> <20080119122344.GA10084@xxxxxxxxxxxxxxx> <fmt1pl$2cp$1@xxxxxxxxxxxxx>
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). 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.
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: