shell_atuin
Tags: dotfiles, shell, atuin, secrets
Secrets needed: Yes, for login (atuin.sh from Bitwarden)
Runs on: All machines
Configures Atuin shell history and logs it in to sync.
What It Does
- Writes
~/.config/atuin/config.toml— sync toapi.atuin.shevery 5m, fuzzy search,filter_mode = "global"(including the Up-arrow binding) - Checks
atuin status; if already logged in, skips the Bitwarden round-trip - Otherwise, when
secrets_available, reads theatuin.shitem (username, password, and a custom fieldkeyholding the mnemonic) and runsatuin login -u … -p … -k … - Runs a best-effort
atuin sync - Imports existing shell history once (
atuin import auto, sentinel~/.local/share/atuin/.history_imported)
Notes
- Skips login with a warning if the
atuinbinary is missing (it's incore_brews) - The mnemonic is passed to
atuin login -k, never written to~/.local/share/atuin/keydirectly — atuin expects that file to be a binary key - Don't set the Up-arrow filter to
session: it looks broken in fresh terminals