EN
返回档案库

档案库 · 开发与企业工具 · 产品决策 · 2023–2026

Atuin 押注开发者会用 SQLite 历史记录替代普通的 ctrl-r

Atuin 用可搜索的 SQLite 存储替换纯文本 shell 历史记录,并提供加密同步;2023 年在 HN 发布获得 551 分和 194 条评论。

Atuin

它在赌什么开发者会用 SQLite 支持的历史记录存储来替代纯文本,这种存储搜索更好,记录退出码和持续时间,并能在多台机器间加密同步。已上线

做的是什么生意

Atuin is an open-source shell-history tool: it replaces the shell's history with a SQLite database, records context for each command, rebinds ctrl-r and the up arrow to a full-screen search UI, and offers optional fully-encrypted history synchronisation between machines through an Atuin server — either the one its author hosts or a self-hosted one.

起因

Atuin's pitch, as its README states, is that plain-text shell history is the wrong store for commands: it logs no exit code, duration, directory or session, search is line-by-line, and history stops at one machine. The answer is to store history in a SQLite database that records that context, rebind ctrl-r to a full-screen search UI, and add optional fully-encrypted synchronisation between machines via an Atuin server — 'You may use either the server I host, or host your own! Or just don't use sync at all.' On 2023-05-06 that pitch drew 551 points and 194 comments on Hacker News.

经过

By the 2026-09-05 snapshot the project had a maintained ecosystem around the original idea: the repository page showed 1,592 commits, the supported-shell list covered zsh, bash, fish, nushell, xonsh and powershell, and the README linked a community forum, an IRC channel, a Discord and documentation. The quickstart became a one-line setup script that registers a user for the Atuin Cloud sync server, while the README still led with the privacy bet — 'all history sync is encrypted, I couldn't access your data even if I wanted to.'

结果

Still live as of the 2026-09-05 snapshot: the repository page shows an active project at 1,592 commits, with forum, Discord, docs and the Atuin Cloud signup all reachable, and no shutdown, acquisition or pivot disclosed.

背景

Atuin 是一个开源的 shell 历史记录工具,用 SQLite 数据库替换 shell 的纯文本历史记录,并为每条命令记录额外上下文——退出码、持续时间、工作目录、主机名、会话——然后将 ctrl-r 和上箭头重新绑定到该数据的全屏搜索界面。README 还提供了通过 Atuin 服务器在机器间进行可选完全加密同步:'你可以使用我托管的服务器,也可以自己托管!或者干脆不同步。'

这个押注是,如果替代品明显更好且采用成本低,开发者会把工作流中从不替换的部分——shell 历史记录——交出来。Atuin 从不删除旧历史文件,支持 zsh、bash、fish、nushell、xonsh 和 powershell,并增加了按退出码、时间、会话或目录过滤、统计和快速跳转,以加密同步作为注册托管服务的理由。2023-05-06,这个推介在 Hacker News 上获得 551 分和 194 条评论。

到 2026-09-05 快照时,项目仍然存活并得到维护:仓库页面显示有 1,592 次提交,README 链接了社区论坛、IRC 频道、Discord、文档以及一个一行安装脚本,用于注册 Atuin Cloud 同步服务器。安全立场仍是核心——'所有历史记录同步均已加密,即使我想访问你的数据也无法做到'——且未披露关闭、收购或转向。

这件事要成立,得有什么

  • 纯文本 shell 历史记录会悄悄丢失使其有用的上下文——退出码、持续时间、目录和会话——因此 SQLite 存储是开发者能立即感受到的升级。
  • Atuin 保留了 ctrl-r、上箭头和现有历史文件不变,因此切换成本保持在较低水平,用户可以在真实 shell 中试用。
  • 加密的跨机器同步将本地便利转化为保留服务器账户的理由,这是开源工具变成服务业务的地方。
  • 该工具在开发者已经所在之处满足他们:支持六种 shell,无需平台迁移,意味着一个 HN 帖子就能触达大量在职开发者。

可借鉴之处

通过使升级成本低廉来替代用户从不改变的工作流部分:Atuin 保留了 ctrl-r 和旧历史文件,同时使搜索、上下文和跨机器同步变得更好。

后续进展

截至 2026-09-05 快照,Atuin 仍然存活:仓库显示 1,592 次提交,支持 zsh、bash、fish、nushell、xonsh 和 powershell,并链接了论坛、IRC、Discord 和文档,旁边还有一个一行安装脚本,注册用户到 Atuin Cloud 同步服务器。README 仍以 2023 年的推介开头——SQLite 历史记录、全屏搜索、可选加密同步——且未披露关闭、收购或转向;页面于 2026-09-06 再次可达。

资料来源

发现哪里写错了?告诉我们。

轮到你了

你刚读完一家。说说你在做什么,看看谁在赌同一件事。

免费账号 · 3 次免费提问 · 不用绑卡

相关案例