macOS
brew install hstrlocal Homebrew formula metadata
sudo port install hstrMacPorts ports tree · shells/hstr/Portfile · 来源: api.github.com
安装
brew install hstrlocal Homebrew formula metadata
sudo port install hstrMacPorts ports tree · shells/hstr/Portfile · 来源: api.github.com
sudo apk add hstrAlpine Linux edge package indexes · hstr · 来源: dl-cdn.alpinelinux.org
sudo dnf install hstrFedora Rawhide package metadata · hstr · 来源: dl.fedoraproject.org
nix profile install nixpkgs#hstrnixpkgs package indexes · pkgs/by-name/hs/hstr/package.nix · 来源: api.github.com
概览
Bash and zsh history suggest box
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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_blacklist可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hh | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
hstr | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:hstr |
|---|---|
| 版本 | 3.2 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/dvorka-oss/hstr |
| 仓库 | https://github.com/dvorka-oss/hstr |
| 最后更新 | 2026-07-28T13:41:32+09:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-8.fc45
Suggest box like shell history completion
https://github.com/dvorka/hstr
sudo dnf install hstrhstr
sudo port install hstr来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.