# 使用 Homebrew, MacPorts 安装 historian

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

## 安装

```sh
sudo av install brew:historian
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install historian
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hist
```

  证据: MacPorts ports tree: math/hist/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:historian
- **软件包管理器:** Homebrew
- **版本:** 0.0.2
- **来源摘要:** Command-line utility for managing shell history in a SQLite database
- **主页:** <https://github.com/jcsalterego/historian>
- **仓库:** <https://github.com/jcsalterego/historian>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hist (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.0.2
## 项目历史与用法

historian is a small shell-history utility that imports `~/.bash_history` into SQLite and exposes a `hist` command for config, import, search, and log viewing. It is a niche predecessor to later shell-history database tools.

### 项目历史

The repository begins on 2017-04-10 with an initial commit. Tags 0.0.1 and 0.0.2 followed within days, and the README documents the utility as a command-line manager for shell history in a SQLite database.

The project is intentionally narrow: dedupe and import Bash history, store it in `~/.historian.db`, search it, and optionally run `hist import` from a shell profile.

### 采用历史

Official adoption evidence is thin. Homebrew and MacPorts package records in the batch input indicate that the tool crossed from a personal script-style repository into package-manager distribution, but the official README does not describe a wider community.

### 使用方式

A user places the script directory on PATH or aliases `hist`, runs `hist import`, and searches with `hist search term` or shorthand `hist /term`. `hist config` prints paths for Bash history, the SQLite database, and sqlite3.

### 为什么软件包爱好者会关心

historian is package-nerd-interesting mainly because it captures the minimal SQLite shell-history idea in a tiny package: no daemon, no sync, no terminal UI, just import and query. That simplicity makes it a useful contrast with later tools such as hiSHtory and Atuin.

### 时间线

- 2017-04-10: Initial commit.
- 2017-04-11: 0.0.1 is tagged.
- 2017-04-14: 0.0.2 is tagged.
- 2017: README documents import, config, search, and log workflows.

### Related projects

- hiSHtory and Atuin are later, larger shell-history tools with contextual search and sync.
- SQLite is the core storage dependency documented by historian.

### 来源

- Official Git repository tags and commits for timeline dates.
- Official README for feature scope, install, usage, and database paths.


## 安全说明

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## 其他软件包管理器记录

- MacPorts - hist: installed executable or alias match | MacPorts ports tree: math/hist/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/historian.yml](https://github.com/mxcl/pkgdb/blob/main/combined/historian.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
