8000 add flag to limit `history --search` results · Issue #3244 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

add flag to limit history --search results #3244

@krader1961

Description

@krader1961

While working on fixing other problems with the history command it occurred to me that there really should be a flag to limit the number of search results to the n most recent commands. I was used to having such a capability when I used zsh and wrote my own history wrapper function when I switched to fish in order to have a similar capability. This would be similar to git log -nnn and far more efficient than piping the output of history -search through head -nnn or directly iterating over $history in a fish function.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0