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

history command only shows the last item #2052

Open
ngocphamm opened this issue Jul 10, 2023 · 0 comments
Open

history command only shows the last item #2052

ngocphamm opened this issue Jul 10, 2023 · 0 comments

Comments

@ngocphamm
Copy link

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 e14fdff.

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

  1. Start a new zsh session
  2. Execute some commands
  3. Exit the session (so the commands are being saved to the history file)
  4. Start a new zsh session
  5. Execute history command
  6. See only the last command is displayed

Versions

  • Prezto commit: 5ca892d (because I use zinit so this is the latest commit to the history module)
  • ZSH version: 5.9
  • OS information: macOS 13.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant