zsh: added HIST_SAVE_NO_DUPS and HIST_FIND_NO_DUPS options to zsh for… #6227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… history configuration.
Description
Added two new config options for zsh module:
saveNoDups
: Do not write duplicate entries into the history file (setting HIST_SAVE_NO_DUPS).findNoDups
: Do not display a line previously found in the history file (setting HIST_FIND_NO_DUPS).Default is to unset these variables.
This allows for more fine-grained configurability of zsh behavior in terms of preserving the shell history.
Checklist
Change is backwards compatible.
Code formatted with
./format
.[] Code tested through
nix-shell --pure tests -A run.all
ornix develop --ignore-environment .#all
using Flakes.Test cases updated/added. See example.
As the code is super obvious and I did not found test cases for other options like e.g.
ignoreAllDups
I assume that his would be fine - otherwise please let me know.Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
Omitted long description, as there is nothing more to say.
If this PR adds a new module
Maintainer CC