From: Frank Terbeck Date: Tue, 28 Nov 2017 20:37:44 +0000 (+0100) Subject: Make a couple of history parameters adhere to presets X-Git-Tag: v0.15.0~7 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=c0a2a4d13a0d0ca203f76da8fd2ed253ea74ee94 Make a couple of history parameters adhere to presets Requested on IRC, and I don't see why not. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c688f28..c64a1f8 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1582,9 +1582,9 @@ function command_not_found_handler () { # history #v# -HISTFILE=${ZDOTDIR:-${HOME}}/.zsh_history -isgrmlcd && HISTSIZE=500 || HISTSIZE=5000 -isgrmlcd && SAVEHIST=1000 || SAVEHIST=10000 # useful for setopt append_history +HISTFILE=${HISTFILE:-${ZDOTDIR:-${HOME}}/.zsh_history} +isgrmlcd && HISTSIZE=500 || HISTSIZE=${HISTSIZE:-5000} +isgrmlcd && SAVEHIST=1000 || SAVEHIST=${SAVEHIST:-10000} # useful for setopt append_history # dirstack handling