The Neighbours
Outcome: you can place Atuin among the other ways shells remember, and say — fairly — what each does that Atuin doesn't, and vice versa. As everywhere in this series, the neighbours are characterised, not benchmarked: the descriptions come from their documentation and long acquaintance, and no transcripts pretend otherwise.
Bash's own history, kept well
The incumbent. With HISTTIMEFORMAT
set, extended history options on, and
shopt -s histappend so shells append
instead of overwriting, plain bash
history is honest, dependency-free and
everywhere. Ctrl-R searches it one
match per press. What it cannot do is
this guide's whole premise: no exit
codes, no durations, no directories,
no database, one file per machine
written on exit. Atuin began as one
user's answer to exactly that list.
If your needs stop at "the last few
hundred commands, roughly", the
incumbent, kept well, is a respectable
choice — and Atuin's importer (chapter
4) is how you leave it without losing
the past.
fzf's Ctrl-R
fzf for Mere Mortals is a sibling
guide, and fzf's shell integration
offers its own Ctrl-R: the same
history file, presented as a fuzzy,
scrollable list. It is most of
chapter 6's experience with none of
chapter 4's recording — the source
is still the flat file, with a flat
file's facts. Many people run both:
fzf for files and folders, Atuin for
history. The two Ctrl-R bindings do
not coexist by accident; chapter 10's
--disable-ctrl-r is how the truce is
usually written.
McFly
The closest relative: a Ctrl-R replacement that also keeps its own SQLite-backed history, with a small neural network that ranks suggestions by context — what worked in this directory, what usually follows what. If your complaint about history search is ranking, McFly's answer is smarter than Atuin's recency. If your need is the recorded facts themselves — exit codes to filter on, durations to sort, a database to query with SQL — that is Atuin's ground. Both import the old file; the shells people keep are the ones whose model they trust.
zsh-histdb
For zsh users, the same idea grown at
home: histdb records commands into
SQLite with context and offers
context-aware completion suggestions.
Atuin's importer can even read a
histdb database (atuin import
zsh-hist-db; the importer list is
transcript t11-importers.txt). The difference is scope:
histdb is a zsh citizen; Atuin works
across bash, zsh, fish and others,
with one database shape everywhere —
which matters the day your second
shell or second machine arrives.
The scrollback and the notebook
Two neighbours nobody installs: the terminal's own scrollback (perfect recall of three hours ago, searchable by eye, gone when the window closes) and the text file where you paste the good commands (perfect judgement, terrible recall). Atuin does not replace the second. The commands that matter on purpose — the runbook, the rebuild steps — deserve the notebook's curation. What Atuin replaces is the scrollback's job: everything else you ever ran, kept past closing time.