[Git-commits] [grml/grml-etc-core] b6246b: zshrc: no longer set histignorealldups
Michael Prokop
noreply at github.com
Fri Jul 9 08:03:19 CEST 2021
Branch: refs/heads/master
Home: https://github.com/grml/grml-etc-core
Commit: b6246bbaab18ae788f527f903e1778e1bb00b5d7
https://github.com/grml/grml-etc-core/commit/b6246bbaab18ae788f527f903e1778e1bb00b5d7
Author: Michael Prokop <mika at grml.org>
Date: 2021-07-09 (Fri, 09 Jul 2021)
Changed paths:
M doc/grmlzshrc.t2t
M etc/skel/.zshrc
M etc/zsh/zshrc
Log Message:
-----------
zshrc: no longer set histignorealldups
The histignorealldups option provides a feature, that if a new command
line being added to the history list duplicates an older one, the older
command is removed from the list.
Demonstration:
| root at grml ~ # echo foo
| foo
| root at grml ~ # echo bar
| bar
| root at grml ~ # history -E 0
| 1 9.7.2021 07:48 exec zsh
| 2 9.7.2021 07:48 echo foo
| 3 9.7.2021 07:48 echo bar
| root at grml ~ # echo foo
| foo
| root at grml ~ # history -E 0
| 1 9.7.2021 07:48 exec zsh
| 3 9.7.2021 07:48 echo bar
| 5 9.7.2021 07:48 echo foo
This is certainly useful for several people, like in personal setups.
But especially for system administration tasks it's quite essential,
that the history shows "the full truth", and it's hard to reconstruct
the order of commands that have been executed.
Whoever wants to get the old behavior back, can enable `setopt
histignorealldups` in their personal zshrc. Provide the according
configuration snippet in /etc/skel/.zshrc instead, and update docs
accordingly.
Closes: grml/grml-etc-core#114
More information about the Git-commits
mailing list