prezto
prezto copied to clipboard
history command only shows the last item
Description
As title, after updating to latest version for the history module (using zinit, executing history
command only shows the last command I had in my history.
It was working fine before this commit https://github.com/sorin-ionescu/prezto/commit/e14fdff4cbce3fb70dd641d2234465a5dae44561.
I found out that it works again if I have zstyle ':prezto:module:history' histsize <number>
set.
Expected behavior
history
command shows more commands in my history. I'm not even sure what's the default number is but here I get 16 commands.
Actual behavior
history
command only shows the last command in my history.
Steps to Reproduce
- Start a new zsh session
- Execute some commands
- Exit the session (so the commands are being saved to the history file)
- Start a new zsh session
- Execute
history
command - See only the last command is displayed
Versions
- Prezto commit: 5ca892d6af50bedb1dd930e03bbe6b3511e976d3 (because I use
zinit
so this is the latest commit to the history module) - ZSH version: 5.9
- OS information: macOS 13.4.1