dvorka/hstr logo

dvorka/hstr

Free

Bash and Zsh shell history TUI suggest box - easily view, navigate, search and manage your command history.

FreeFree tier
Type
Open Source

About dvorka/hstr

HSTR (HiSToRy) is a command line utility that brings an improved bash and zsh shell history completion experience. It provides a terminal user interface (TUI) suggest box that allows users to easily view, navigate, search, and manage their command history. Designed as a more efficient alternative to the traditional Ctrl-r reverse search, HSTR offers features such as deleting obsolete or sensitive commands from history and bookmarking favorite commands for quick reuse. It is open source (Apache-2.0) and available for many Linux distributions, macOS, and via package managers.

Key Features

Interactive TUI suggest box for command history
Bash and Zsh support
Faster and more efficient than Ctrl-r reverse search
History management: delete obsolete or sensitive commands
Bookmark and curate favorite commands
Search and filter command history interactively
Cross-platform: Linux, macOS, WSL, Cygwin

Pros & Cons

Pros
  • Open source with Apache-2.0 license
  • Free to use and distribute
  • Cross-platform support (Linux, macOS, Windows via WSL/Cygwin)
  • Active development with frequent releases
  • Lightweight and fast TUI
  • Allows removing commands from history to protect sensitive data
  • Bookmarking feature for favorite commands
Cons
  • Only supports bash and zsh shells (not fish or others)
  • Requires initial configuration to set up integration with shell
  • Terminal-based interface may not appeal to users preferring GUI tools
  • No native Windows support (requires WSL or Cygwin)

Best For

Find and reuse previously used commands quicklyAvoid typing long or complex commands repeatedlyClean up command history by removing sensitive or outdated entriesOrganize and bookmark frequently used commands for faster accessImprove shell productivity with an intuitive history browser

FAQ

What shells does HSTR support?
HSTR supports bash and zsh shells.
How do I install HSTR?
HSTR can be installed via package managers on Ubuntu, Debian, Fedora, CentOS, Arch, macOS (nix, Guix), and others. Alternatively, you can build from source. See the INSTALLATION.md file for details.
How do I configure HSTR?
Run 'hstr --show-bash-configuration' for bash or 'hstr --show-zsh-configuration' for zsh and append the output to your .bashrc or .zshrc respectively.
Can I delete commands from history using HSTR?
Yes, HSTR allows you to remove commands that are obsolete or contain sensitive information from your shell history.
Is HSTR free?
Yes, HSTR is free and open source under the Apache-2.0 license.