In zsh
, I want to have unlimited history. I set HISTSIZE=
, which works in bash
. Now I import an old history
mv old_history .history
which is pretty big
wc -l .history
43562 .history
If I now close and start zsh
again, I see
wc -l .history
32234 .history
Can't I have unlimited history in zsh
?
Best Answer
There is the limit and the possibilities of your machines.
From the ZSH Mailing list:
Which explain the Gentoo solution:
History won't be saved without the following command:
To prevent history from recording duplicated entries (such as ls -l entered many times during single shell session), you can set the hist_ignore_all_dups option:
A useful trick to prevent particular entries from being recorded into a history by preceding them with at least one space.