Configuration
Outcome: you can change Atuin's defaults
in the one file where they live, and
you have watched one change take effect
on real searches. Check: after the
experiment below, your own
search_mode setting changes what
atuin search returns — then you set
it back, or keep it, knowingly.
The file and the catalogue
Everything lives in ~/.atuin/config.toml,
TOML format, one key = value per line.
The full catalogue of keys is printed
by the tool itself:
atuin default-config
It runs to hundreds of lines, each key shown commented-out at its default with a paragraph of explanation. This guide will not reprint it — it is on your machine, version-matched, which no book can promise. The lab's whole working configuration was two lines (chapter 3); this chapter adds a third, briefly, on purpose.
The experiment: a default search mode
Chapter 5 left a loose end: the default
fuzzy mode matched aptinst against
sudo apt install -y tmux htop, which
is delightful interactively and noisy in
a pipe. Make prefix the default:
search_mode = "prefix"
appended to the lab's config
(transcript t10-config-effect.txt),
the same two searches change their
answers immediately — no restart, the
file is read per invocation:
$ atuin search --cmd-only aptinst
$ atuin search --cmd-only tar
tar czf photos-2026.tgz ~/Pictures
tar czf garden-notes-backup.tgz projects/garden-notes
aptinst now matches nothing (no
command starts with it), and tar
returns only the true tar commands.
The lab then restored its two-line
config; on your machine, choose per
taste — fuzzy forgiving at the window,
prefix strict in scripts (or pass
--search-mode per call and leave the
default alone).
The keys worth knowing first
From the catalogue, in the order a new user tends to want them:
auto_syncandsync_frequency— whether and how often a registered Atuin syncs (chapter 11). The lab setauto_sync = false; unregistered, both are inert either way.update_check— the tool's own version check. The lab set it false; your package manager's updates make it redundant for most installs.filter_mode— the scope the interactive search opens in (chapter 7's six). Setdirectoryhere if you mostly hunt within the current project. There are companion keys (filter_mode_shell_up_key_binding,search_mode_shell_up_key_binding) that let the up-arrow door behave differently from Ctrl-R.enter_accept— what Enter does in the search window: run the command at once (true, the fresh-install default) or place it on the prompt (false, the lab's behaviour). Chapter 6's warning lives here; set it deliberately, once, and stop wondering.inline_heightandstyle— how much terminal the window takes (0for always-fullscreen) and how densely rows render.secrets_filter—trueby default: refuse to record commands matching the built-in list of secret shapes (chapter 1). Turning it off is a decision to say out loud first.history_filterandcwd_filter— your own additions: lists of regular expressions; matching commands, or commands in matching directories, are simply never recorded. The careful reader's tool: the work project whose commands should not exist in a personal database goes here, by directory, before it is typed in.
The keys at the other end: init
Two behaviours are not in the file at
all, because they belong to the shell
hook (chapter 2). They are flags on the
init line itself (transcript
t10-init-help.txt):
eval "$(atuin init bash --disable-up-arrow)"
eval "$(atuin init bash --disable-ctrl-r)"
The first returns ↑ to plain shell
history; the second leaves Ctrl-R to
bash's built-in reverse search while
Atuin keeps recording and answers via
atuin search. Both doors can be
closed; the database keeps filling
either way, which is rather the point
of separating recording from searching.