macOS
brew install hstrlocal Homebrew formula metadata
sudo port install hstrMacPorts ports tree · shells/hstr/Portfile · source: api.github.com
brew
Bash and zsh history suggest box. Version 3.2 via Homebrew; verified 2026-07-04.
install
brew install hstrlocal Homebrew formula metadata
sudo port install hstrMacPorts ports tree · shells/hstr/Portfile · source: api.github.com
sudo apk add hstrAlpine Linux edge package indexes · hstr · source: dl-cdn.alpinelinux.org
sudo apt install hstrDebian stable package indexes · hstr · source: deb.debian.org
sudo dnf install hstrFedora Rawhide package metadata · hstr · source: dl.fedoraproject.org
nix profile install nixpkgs#hstrnixpkgs package indexes · pkgs/by-name/hs/hstr/package.nix · source: api.github.com
overview
Bash and zsh history suggest box
history
HSTR is a terminal user-interface for viewing, searching, curating, and reusing bash and zsh command history, with the hh command as a common shortcut.
The README expands HSTR as HiSToRy and presents it as a more efficient alternative to Ctrl-r for shell history completion. It combines search, navigation, deletion of sensitive or obsolete commands, and bookmarking of favorite commands.
The project evolved into a broadly packaged shell productivity tool, with documentation for bash and zsh bindings, aliases, environment-driven configuration, blacklist behavior, color and layout settings, and shell-history tuning.
The README lists installation documentation for many distributions and package systems, including Ubuntu, Debian, Fedora, CentOS, openSUSE, Gentoo, Alpine, Arch, FreeBSD, Slackware, Void, Haiku, macOS, Nix, Guix, and others. The input metadata also records packages in Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, and Ubuntu.
The project page collects coverage from Linux Magazine, UbuntuGeek, DebianAdmin, Tuxdiary, Softpedia, OSTechNix, videos, and community posts, which fits its role as a discoverable shell workflow enhancer.
Users typically add generated bash or zsh configuration to ~/.bashrc or ~/.zshrc, bind HSTR to a key such as Ctrl-r, and optionally define alias hh=hstr.
Configuration is intentionally shell-native: HSTR reads HISTFILE, HSTR_PROMPT, HSTR_IS_SUBSHELL, and HSTR_CONFIG, with options for color, prompt placement, matching mode, duplicate handling, favorites, and blacklists.
HSTR is significant in package-manager culture because it is a shell-history tool that crosses the boundary between a packaged executable and user dotfile integration. A package can install the binary, but value comes when the user wires it into readline or zsh keybindings.
It is also one of the better-known examples in the family of TUI shell-history searchers, alongside tools such as fzf-based history widgets and newer history managers.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.bashrc~/.zshrc~/.hstr_blacklistexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
hh | cli | global executable | |
hstr | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/dvorka-oss/hstr
install metadata
| Package key | brew:hstr |
|---|---|
| Version | 3.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/hstr |
| Homepage | https://github.com/dvorka-oss/hstr |
| Repository | https://github.com/dvorka-oss/hstr |
| Upstream docs | https://github.com/dvorka-oss/hstr |
| License | Apache-2.0 |
| Source archive | https://github.com/dvorka-oss/hstr/archive/refs/tags/v3.2.tar.gz |
| Last updated | 2026-07-04T16:53:43+09:00 |
| Pulse | updated |
| Dependencies | readline |
| Build dependencies | autoconf, automake, libtool, pkgconf |
| Uses from macOS | ncurses |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hstr |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
hstr 3.1+ds-1+b1
Suggest box like shell history completion
https://github.com/dvorka/hstr
sudo apt install hstrhstr
nix profile install nixpkgs#hstrhstr 3.1+ds-1build2
Suggest box like shell history completion
https://github.com/dvorka/hstr
sudo apt install hstrhstr 3.2-r0
Bash and ZSH shell history suggest box
https://github.com/dvorka/hstr
sudo apk add hstrhstr-bash-completion 3.2-r0
Bash completions for hstr
https://github.com/dvorka/hstr
sudo apk add hstr-bash-completionhstr-doc 3.2-r0
Bash and ZSH shell history suggest box (documentation)
https://github.com/dvorka/hstr
sudo apk add hstr-dochstr 3.1-7.fc44
Suggest box like shell history completion
https://github.com/dvorka/hstr
sudo dnf install hstrhstr
sudo port install hstrsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.