Skip to content

history list

atuin history list

Arg Description
--cwd/-c List history for the current directory only (default: all dirs)
--session/-s List history for the current session only (default: false)
--human Use human-readable formatting for the timestamp and duration (default: false)
--cmd-only Show only the text of the command (default: false)
--reverse Reverse the order of the output (default: true)
--format Specify the formatting of a command (see below)
--print0 Terminate the output with a null, for better multiline support
--style Print each entry as JSON instead (see below)

Format

Customize the output of history list

Example

atuin history list --format "{time} - {duration} - {command}"

Supported variables

{command}, {directory}, {duration}, {user}, {host}, {author}, {intent}, {exit},
{time}, {session}, and {uuid}

JSON

--style json prints one JSON array of entries, and --style ndjson prints one entry per line. atuin history last and atuin search take the same flag.

atuin history list --style ndjson | jq -r 'select(.exit != 0) | .command'

Each entry has these fields:

Field Meaning
id The entry's ID
timestamp When the command started, in RFC 3339 and UTC
duration_ns How long it ran, in nanoseconds, or -1 while it's running
exit Its exit code, or -1 while it's running
command The command line
cwd The directory it ran in
session The shell session it ran in
hostname The host:user it ran as
author Who ran it: the user, or an agent's name
intent Why an agent ran it, or null
deleted_at When it was deleted, or null
shell The shell it ran in, or null
author_kind user or agent when whatever recorded it said so, otherwise null