pkg.soopen package index

brew / 排名 3519

使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 hstr

查看 hstr 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hstr

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install hstr

MacPorts ports tree · shells/hstr/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add hstr

Alpine Linux edge package indexes · hstr · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install hstr

Debian stable package indexes · hstr · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install hstr

Fedora Rawhide package metadata · hstr · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#hstr

nixpkgs package indexes · pkgs/by-name/hs/hstr/package.nix · 来源: api.github.com

概览

软件包摘要

Bash and zsh history suggest box

命令和别名

  • hh
  • hstr

历史

项目历史与用法

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.

时间线

  • 0.2: Early upstream tag appears in the repository.
  • 1.x: The project accumulated a long sequence of tagged releases.
  • 2.x: Later tags continued the shell-history TUI series.
  • 3.x: The v3.2 tag appears after the 3.0 and 3.1 tags.

Related projects

  • Related projects include bash, zsh, readline, fzf history bindings, shell history managers, and terminal bookmark or snippet workflows.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.bashrc~/.zshrc~/.hstr_blacklist

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hhcli全局可执行文件
hstrcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本3.2
管理器更新时间2026-07-28
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/dvorka-oss/hstr

安装元数据

软件包元数据

软件包键brew:hstr
版本3.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hstr
主页https://github.com/dvorka-oss/hstr
仓库https://github.com/dvorka-oss/hstr
许可证Apache-2.0
源码归档https://github.com/dvorka-oss/hstr/releases/download/v3.2/hstr-3.2.0-tarball.tgz
最后更新2026-07-28T13:41:32+09:00
Pulseupdated
依赖readline
构建依赖pkgconf
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehstr
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

hstr 3.1+ds-1+b1

Suggest box like shell history completion

https://github.com/dvorka/hstr

sudo apt install hstr
  • Section: utils
  • Architecture: amd64
  • Source Package: hstr
  • 4 依赖
  • normalized package name match
  • 匹配方式:Hstr
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hstr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hstr

nix profile install nixpkgs#hstr
  • normalized package name match
  • 匹配方式:Hstr
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/hs/hstr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

hstr 3.1+ds-1build2

Suggest box like shell history completion

https://github.com/dvorka/hstr

sudo apt install hstr
  • Section: universe/utils
  • Architecture: amd64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Hstr
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: hstr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

hstr 3.2-r0

Bash and ZSH shell history suggest box

https://github.com/dvorka/hstr

sudo apk add hstr
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: hstr
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hstr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hstr from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hstr-bash-completion 3.2-r0

Bash completions for hstr

https://github.com/dvorka/hstr

sudo apk add hstr-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: hstr
  • normalized package name match
  • 匹配方式:Hstr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hstr-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hstr-doc 3.2-r0

Bash and ZSH shell history suggest box (documentation)

https://github.com/dvorka/hstr

sudo apk add hstr-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: hstr
  • normalized package name match
  • 匹配方式:Hstr
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hstr-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

hstr 3.1-8.fc45

Suggest box like shell history completion

https://github.com/dvorka/hstr

sudo dnf install hstr
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hstr
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hstr
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: hstr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst
MacPorts95%

hstr

sudo port install hstr
  • normalized package name match
  • 匹配方式:Hstr
MacPorts ports tree · api.github.com · MacPorts ports tree: shells/hstr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation