dvorka-oss/hstr
FreeBash and Zsh shell history TUI suggest box - easily view, navigate, search and manage your command history.
About dvorka-oss/hstr
HSTR (Hi STo R y) is a command line utility that provides an improved bash and zsh command history completion experience via a terminal user interface (TUI) suggest box. It allows users to easily view, navigate, search, and manage their command history, offering a more efficient alternative to the traditional Ctrl-r. HSTR supports removing obsolete or sensitive commands from history, bookmarking favorite commands, and using tags for fast lookup. It is available as a package for many Linux distributions, macOS, and other Unix-like systems, and can also be built from source. Configuration is straightforward, requiring only that users run a simple command to generate the necessary shell integration code.
Key Features
Pros & Cons
- More efficient command history search than traditional Ctrl-r
- Helps maintain command history hygiene by removing unwanted entries
- Open source and free with permissive Apache 2.0 license
- Supports both bash and zsh shells
- Available via package managers for many platforms
- Customizable behavior and appearance via configuration
- Only works with bash and zsh (not fish or other shells)
- Terminal user interface may not suit all users (no GUI)
- Potential issues with command insertion in some terminal emulators (as per troubleshooting note)
- Requires initial configuration to integrate with shell