The Z shell (Zsh) is a shell and a command-line interpreter for shell scripts. Zsh mostly maintains the Bourne shell's syntax and behavior, but in its default configuration deviates in some significant ways from the POSIX standard specification of the sh language and adds substantially more features.

https://github.com/ddworken/hishtory
Your shell history: synced, queryable, and in context