
Search shell command history from zsh, bash, and fish.
Note
If your Zsh history is not displaying correctly (it is showing as one record), it may be because Zsh history is not saving the timestamp correctly.
Try the following repair options
oh-my-zsh to try to solve this problem.zshrc file to try to fix the problem
setopt EXTENDED_HISTORY to your .zshrc file; this option will enable timestamp logging.Search shell command history.
History Timestamp to fix the display error of Zsh history