Zsh or Z Shell is the default Unix shell used by Terminal in macOS since 10.15

Zsh, a Unix shell, is available in macOS as an alternative to the default Bash shell in Terminal app.

Zsh is an extension of the original Bourne shell and can be used both as interactive login shell or as a command interpreter for shell scripts.

history | excerpt history