All apps/Atuin

Atuin

atuin

Atuin replaces your existing shell history with a SQLite database, and records additional context for your commands.

Runs as atuin|macOS, Linux, Windows|atuin.sh

Command form

ai-draft · 6 tasks · 22 fields

Atuin replaces shell history with a searchable database. Use the subcommand tabs for search, stats, listing, sync and shell init; account, key and server commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui atuin

atuin search

Search history

Search the history database. Deleting matches is left out.

Search historyExample values, fixed in this page — nothing here reaches a terminal
Basic
Query
string
Directory
string
Limit
integer
Command text only
--cmd-only
TasksEach one presets the form for one job
Commands in this directory
querycwdlimitcmd_only
Interactive search
queryinteractive
ParametersOnly these flags are editable in the form
Query
string · positional 0 · repeatable
Directory
Only results from this directory.
string
--cwd-c
Exit code
Only results with this exit code.
string
--exit-e
Before
Only results added before this date.
string
--before-b
After
Only results added after this date.
string
--after
Limit
Maximum number of entries.
integer
--limit
Interactive UI
boolean
--interactive-i
Filter mode
Override the configured filter mode.
string
--filter-modeglobalhostsessiondirectoryworkspace
Search mode
Override the configured search mode.
string
--search-modeprefixfull-textfuzzyskim
Human-readable time
boolean
--human
Command text only
boolean
--cmd-only
Oldest first
boolean
--reverse-r

atuin stats

History statistics

Show the most used commands over a period.

History statisticsExample values, fixed in this page — nothing here reaches a terminal
Basic
Period
string
Top commands
20integer
TasksEach one presets the form for one job
Top 20 commands
periodcount
ParametersOnly these flags are editable in the form
Period
Leave blank for statistics since the beginning.
string · positional 0 · repeatable
Top commands
How many top commands to list.
integer
--count-c

atuin history list

List history

List history items.

List historyExample values, fixed in this page — nothing here reaches a terminal
Basic
This session only
--session
Command text only
--cmd-only
TasksEach one presets the form for one job
This session
sessioncmd_only
ParametersOnly these flags are editable in the form
This directory only
boolean
--cwd-c
This session only
boolean
--session-s
Human-readable time
boolean
--human
Command text only
boolean
--cmd-only

atuin sync

Sync history

Sync with the configured server.

Sync historyExample values, fixed in this page — nothing here reaches a terminal
Basic
Force re-download
--force
TasksEach one presets the form for one job
Sync
force
ParametersOnly these flags are editable in the form
Force re-download
Force re-download everything.
boolean
--force-f

atuin init

Shell setup

Print the shell setup to eval in your shell rc file.

Shell setupExample values, fixed in this page — nothing here reaches a terminal
Basic
Shell*
zshstring
TasksEach one presets the form for one job
Zsh setup
shell
ParametersOnly these flags are editable in the form
Shell
string · positional 0
zshbashfishnu
Do not bind Ctrl-R
boolean
--disable-ctrl-r
Do not bind Up Arrow
boolean
--disable-up-arrow
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed atuin against its version. A form that does not match your version is not offered.