Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh: added HIST_SAVE_NO_DUPS and HIST_FIND_NO_DUPS options to zsh for… #6227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koseduhemak
Copy link

@koseduhemak koseduhemak commented Dec 23, 2024

… 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 or nix 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

    {component}: {description}
    
    {long description}
    

    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

    • Added myself as module maintainer. See example.

Maintainer CC

@github-actions github-actions bot added the shell label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant