Skip to content

Use HIST_REDUCE_BLANKS  #8722

Closed
Closed
@curusarn

Description

Is your feature request related to a problem? Please describe.
Lines that only differ in whitespace are not deduplicated out of my shell history. For example, commands cd and cd are both saved in the history despite being semantically and almost syntactically same.

Describe the solution you'd like
Enable HIST_REDUCE_BLANKS zsh option.
Docs:

HIST_REDUCE_BLANKS
Remove superfluous blanks from each command line being added to the history list.

Describe alternatives you've considered
Enabling HIST_REDUCE_BLANKS in my local configuration but I think this might be useful to many people without having any negative effects on people who don't care.

I'm wondering what everyone thinks.

Metadata

Assignees

No one assigned

    Labels

    Area: coreIssue or PR related to core parts of the projectFeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions