Partly revert c0a2a4d again
authorFrank Terbeck <ft@grml.org>
Sat, 30 Dec 2017 10:11:24 +0000 (11:11 +0100)
committerFrank Terbeck <ft@grml.org>
Sat, 30 Dec 2017 10:17:11 +0000 (11:17 +0100)
commitaf65087851ed8d2f74bd025b5862f5222884da97
tree77de9383d972a3146f1821eeb3a7136dcec01e08
parentc0a2a4d13a0d0ca203f76da8fd2ed253ea74ee94
Partly revert c0a2a4d again

As it turns out, zsh has defaults on HISTSIZE and SAVEHIST. I have lost track
off zsh defaults a long time ago. This is a reason not to do this at all.
HISTSIZE's default is 30, SAVEHIST's default is 0. And the latter is a big
problem: No history will be saved anymore.

If someone wants different values for these two parameters, they can set them
in .zshrc.local. I am NOT working around this by comparing the actual value to
zsh's defaults.

The combined diff of c0a2a4d and this commit looks like this:

[snip]
--- a/etc/zsh/zshrc
+++ b/etc/zsh/zshrc
@@ -1582,7 +1582,7 @@ function command_not_found_handler () {
 # history

 #v#
-HISTFILE=${ZDOTDIR:-${HOME}}/.zsh_history
+HISTFILE=${HISTFILE:-${ZDOTDIR:-${HOME}}/.zsh_history}
 isgrmlcd && HISTSIZE=500  || HISTSIZE=5000
 isgrmlcd && SAVEHIST=1000 || SAVEHIST=10000 # useful for setopt append_history
[snap]

Closes: Github bugreport #64
etc/zsh/zshrc