Edit and manage your Zsh command history directly from the terminal with automatic formatting and undo functionality.
zsh-hist is a Zsh plugin that enables editing and management of Zsh shell history directly from the command line. It provides tools to format, edit, delete, and manipulate history entries without leaving the terminal, solving the problem of messy or incorrect command history.
Zsh users who want better control over their shell history, particularly developers and system administrators who work extensively in the terminal and want to maintain clean, formatted command histories.
Developers choose zsh-hist because it integrates history management directly into their workflow with powerful editing commands, automatic formatting, and undo functionality—all without requiring external editors or tools.
📝 Edit your Zsh history from the command line.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Formats commands before they are saved to history, improving readability and consistency, as highlighted in the README's automatic code formatting section.
Provides a comprehensive `hist` command with subcommands like edit, delete, and normalize, enabling history manipulation directly from the terminal without external tools.
Pressing Undo pops the last command into the line editor for correction, then replaces the faulty entry in history, enhancing error recovery as described.
Can automatically expand aliases before commands are saved to history when enabled via zstyle, keeping history clean and alias-free.
Requires unsetting HIST_REDUCE_BLANKS in .zshrc for full formatting preservation, which may disrupt existing shell settings or history compression preferences.
Automatic formatting can disable certain global aliases, such as those using semicolons, limiting advanced alias usage for power users.
Lacks package manager support; installation involves cloning the repository and manually sourcing the plugin file, which can be cumbersome compared to integrated plugin systems.